Summary: | Avoid resource leak warning when the underlying/chained resource is closed explicitly | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Deepak Azad <deepakazad> |
Component: | Core | Assignee: | Stephan Herrmann <stephan.herrmann> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | amj87.iitr, markus.kell.r, stephan.herrmann |
Version: | 3.8 | ||
Target Milestone: | 3.8 M5 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: | |||
Bug Depends on: | 358903 | ||
Bug Blocks: |
Description
Deepak Azad
2011-10-14 01:09:26 EDT
The compiler should also use the whitelist for wrapper resources here (Group 1 from bug 358903 comment 9). I.e. warn only if the wrapper is not in the whitelist. See also bug 361073, which is the opposite case - top level resource is closed but warning on underlying resource. Covered by the patch in bug 358903 comment 20. Corresponding tests are: test061a, test061g, test061h. Resolved by commit 8d45cb26fc5ad244f93e8632d761d46ad4a120cf on behalf of bug 358903. Verified for 3.8M5 using build I20120122-2000 |