| Summary: | Graphics_Test lets Fixture#tearDown() fail by leaving open an inputStreams | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Rüdiger Herrmann <ruediger.herrmann> | ||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | rsternberg | ||||
| Version: | unspecified | ||||||
| Target Milestone: | 1.5 M1 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows All | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 347446 | ||||||
| Attachments: |
|
||||||
|
Description
Rüdiger Herrmann
After further investigation it turned out that two tests in Graphics_Test cause the problem as they (or the code under test) leave open an input stream: * testGetImageWithClassLoader * testGetImageWithInputStream Changed the bug summary accordingly Fixed testGetImageWithInputStream by closing the input stream. Changes are in CVS HEAD. Created attachment 197296 [details]
Proposed fix for Graphics_Test#testGetImageWithClassLoader
Tis patch fixes the issue by closing the class resource input stream in ImageFactory#createImage(String,ClassLoader)
Applied patch from atachment 197296 to CVS HEAD. If you don't like to try-catch block, pleasse see bug 348190. @Ralf: Do you have a chance to revise this fix? Is this a candidate for 1.4.1? Marking as FIXED (see comment #4) |