Bug 75112

Summary: [Search] Cannot find reference to a member type
Product: [Eclipse Project] JDT Reporter: Frederic Fusier <frederic_fusier>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.1 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Frederic Fusier CLA 2004-09-27 14:15:19 EDT
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?!
Comment 1 Frederic Fusier CLA 2004-09-27 14:17:04 EDT
Another issue is that it does no longer work for Sub either if I search
references as a pattern string: "Member.Sub"...
Comment 2 Frederic Fusier CLA 2004-10-06 04:48:57 EDT
Ununderstandly, I cannot reproduce problem described in comment 0!?!?
However, problem of comment 1 is still there and this bug will address it...
Comment 3 Frederic Fusier CLA 2004-10-06 07:02:49 EDT
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
Comment 4 David Audel CLA 2004-11-02 12:15:09 EST
Verified for 3.1M3 with build I20041101.

Found search results for "X.Member" or "X.Member.Sub" and found nothing for
"Member.Sub".