Summary: | [search] NPE when trying to find references to field variable | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Sehyo Chang <sehyo> | ||||
Component: | Core | Assignee: | Frederic Fusier <frederic_fusier> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | david_audel, martinae | ||||
Version: | 3.2 | ||||||
Target Milestone: | 3.3 M5 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Sehyo Chang
2006-05-26 16:53:55 EDT
I cannot reproduce your problem using either 3.2 RC6 or 3.2 RC5. It works also using either a 1.4.2 VM (build 1.4.2_12-b02) or a 1.5.0 one (build 1.5.0_07-b02), what VM were you using? Has your workspace something special or are you able to reproduce in a fresh new one? My JVM is 1.5b06 And about reproduce this issue in a new workspace? Please reopen if you get this NPE again using 3.2 GA. If you cannot reproduce in a brand new workspace, then let me know where I can get your corrupted workpsace in order to help me to reproduce this issue, thanks Reopen as David got this NPE. Here's a simple test case based on his workspace's example: X.java: package q; public class X { String str; } Test.java: package p; import q.X; public class Test { String foo(X x) { return x.str; } } Search reference to field X.str => NPE! The important point is that reference to 'str' field is flagged by compiler as not visible... Binding seems to be missing and explains the NPE! Created attachment 56845 [details]
Proposed patch
Released for 3.3 M5 in HEAD stream. Verified for 3.3 M5 using build I20070205-1824. |