Community
Participate
Working Groups
20020530 this behavior is new - was different in F1 -----A.java----- package p1; import p2.C; public class A{ C c; p2.C p2c; } -----B.java----- package p1; import p2.C; public class B{ C c; p2.C m(C C, A A){ return C; } } ---C.java---- package p2; import p1.A; import p1.*; import p1.B; public class C{ A a; p1.A p1a; B b; p1.B p1B; } the import declaration in A.java is returned by (getEnclosingElement on the result) SearchEngine::searchDeclarationsOfReferencedTypes()
Right, introduced bug when fixing bug 17906 (forgot to override matchReportImportRef in DeclarationOfReferencedTypesPattern). Fixed.
*** Bug 18456 has been marked as a duplicate of this bug. ***
Verified (see JavaSearchTests.testDeclarationOfReferencedTypes5())