Community
Participate
Working Groups
Build 20021001 1. Create the following cu p/X.java: package p; public class X { public void bar() { } public Object x = new Object() { public void foo() { } }; } 2. Open the Java search dialog. 3. Search for method declaration of "foo" Observe: None is found
Removing the declaration of bar() makes it work.
The HasLocalTypeMASK was not set on the field declaration and thus the "foo" reference was not added to the index. This was due to a bug in the Parser that used to mark only method declarations and type declarations in Parser.markCurrentMethodWithLocalType(). Fixed this method and renamed it to markEnclosingMemberWithLocalType().
Verified.