| Summary: | Compile warning in official build | ||
|---|---|---|---|
| Product: | [Eclipse Project] Equinox | Reporter: | Dani Megert <daniel_megert> |
| Component: | Compendium | Assignee: | equinox.compendium-inbox <equinox.compendium-inbox> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jwross, tjwatson |
| Version: | 3.8.0 Juno | ||
| Target Milestone: | Juno M4 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
This is similar to bug 302375 and bug 300643. The @SuppressWarnings("hiding") is actually necessary because there is, in fact, an instance variable being overridden (intentionally) by a method local one. If I understand correctly, the 'Unnecessary @SuppressWarnings("hiding")' warning shows up in the build because the related 'Local variable declaration hides another field or variable' compiler setting is ignored there but not in my workspace. I believe I can fix this by adding "javacWarnings..=-hiding" to the build.properties of the metatype project, correct? (In reply to comment #1) > This is similar to bug 302375 and bug 300643. The @SuppressWarnings("hiding") > is actually necessary because there is, in fact, an instance variable being > overridden (intentionally) by a method local one. > > If I understand correctly, the 'Unnecessary @SuppressWarnings("hiding")' > warning shows up in the build because the related 'Local variable declaration > hides another field or variable' compiler setting is ignored there but not in > my workspace. > > I believe I can fix this by adding "javacWarnings..=-hiding" to the > build.properties of the metatype project, correct? yes. Added javacWarnings..=-hiding to metatype project's build.properties. http://git.eclipse.org/c/equinox/rt.equinox.bundles.git/commit/?id=34f4c9c7d16399d7a0bcc2afff9c464ed269a70c Verified in N20111122-2000. |
N20111121-2000. 1. WARNING in /src/org/eclipse/equinox/metatype/impl/ObjectClassDefinitionImpl.java (at line 166) @SuppressWarnings("hiding") Unnecessary @SuppressWarnings("hiding")