Community
Participate
Working Groups
Using N20060421-0010 but already exists in 3.1.2 Consider following compilation unit C.java: public class C { CC cc; CC.CCC z; C(int c) { cc = new CC(c); z = cc.new CCC(c); } class CC { CC(int x) {} class CCC { CCC(int x) {} } } } Select field cc in C and search for references: 1 match is found => OK Select field z in C and search for references: no match is found => KO, we're expecting to find a reference in C constructor... Note that it works if class C is a binary in a jar file with attached source... Note also that this is a regression between 3.0 and 3.1 as it works correctly using 3.0.2 build.
Regression was introduced while implementing search for generic types (bug 75641). Philippe, do you think it's a good candidate for RC2?
Created attachment 39189 [details] Proposed patch Personnaly I would this can be put in RC2 for several reasons: 1) it's a regression regarding 3.0, fix is just to put back previous behavior 2) fix is really small, no huge possible impact 3) even if there's some small unexpected impact, it would be reporting more matches as we add a '*' before field qualification type. It would be better than missing some matches as we currently do (note that renaming field z in the example will lead edited compilation unit with a compiler error !)
+1 for 3.2RC2
Patch released in HEAD.
Verified with I20060427-1600 for 3.2RC2