Community
Participate
Working Groups
v_541 Adapted from bug 88167: Search for declarations of method getTheValue() does not find the method in the anonymous enum. Neither works with string pattern nor with java element search. public enum Test{ a { @Override int getTheValue() { // not found return 0; } }; abstract int getTheValue(); }
Fixed and released in HEAD. [jdt-core-internal] Changes done in MatchLocator: - LocalDeclarationVisitor.visit(TypeDeclaration): back to initial implementation (ie. before enum search implementation) - reportMatching(FieldDeclaration,...): in type hierarchy, report on field declaration when node is anonymous type declaration of an enum field Test case added in JavaSearchBugsTests + modify existing JavaSearch.testEnum05()
Verified for 3.1 M7 using build I20050509-2010 + jdt.core HEAD.