Community
Participate
Working Groups
Using build 3.1 M2. Having following test case: X.java package p; public class X { class Member { class Sub {} } } Y.java package p; public class Y { X.Member x; p.X.Member m; p.X.Member.Sub s; } I search references to Member in project and does not find anything. Strangely, it works for Sub?!
Another issue is that it does no longer work for Sub either if I search references as a pattern string: "Member.Sub"...
Ununderstandly, I cannot reproduce problem described in comment 0!?!? However, problem of comment 1 is still there and this bug will address it...
Fixed. For pattern with non-null qualification field, also test whether qualified name may be equal to binding qualified source name (ie. without package name). See bug 75641 and attached patch file for details of changed done in TypeReferenceLocator... No specific test cases added due to the fact that existing ones in JavaSearchTests cover non-regression of this modification
Verified for 3.1M3 with build I20041101. Found search results for "X.Member" or "X.Member.Sub" and found nothing for "Member.Sub".