Summary: | [1.5] NullPointerException in FieldBinding.canBeSeenBy when using static import | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Peter Schneider-Kamp <psk> | ||||
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | major | ||||||
Priority: | P3 | CC: | eclipse, javatech, psk, vlsergey | ||||
Version: | 3.1 | ||||||
Target Milestone: | 3.1 M5 | ||||||
Hardware: | PC | ||||||
OS: | All | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Peter Schneider-Kamp
2004-12-21 06:04:54 EST
Created attachment 16793 [details]
test case for reproducing the bug
Not specific to Linux => change OS to All. Peter, Until this bug was fixed, there are several ways to get rid off this NPE: 1) obvious one is to remove the unnecessary static import... 2) if you really need it, then import explicit static field instead of use on demand one (ie. replace import static bug.C.*; with import static import bug.C.field;) 3) if you use too many C static fields in your class and really need on demand import, then set all C static fields public. With this 3 available workarounds, you should definitely avoid to get this NPE => reduce severity to major... *** Bug 81909 has been marked as a duplicate of this bug. *** Offending check was triggered by hiding check which was performing through static import. Disallowed this scenario, as this isn't truly hiding (inheritance or enclosing). Fixed, added regression test: StaticImportTest#test017. *** Bug 82455 has been marked as a duplicate of this bug. *** Verified in I20050214 |