Bug 75112 - [Search] Cannot find reference to a member type
Summary: [Search] Cannot find reference to a member type
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M3   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-27 14:15 EDT by Frederic Fusier CLA
Modified: 2004-11-02 12:15 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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".