Bug 116459

Summary: [1.5][search] Generic type reference should return exact match on parameterized type with its own variables
Product: [Eclipse Project] JDT Reporter: Frederic Fusier <frederic_fusier>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: philippe_mulet
Version: 3.1   
Target Milestone: 3.3 M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Frederic Fusier CLA 2005-11-15 12:02:55 EST
Build 3.2 M3 (but already exists in 3.1)

When search for references of generic type X<T>, search engine should return
exact match on parameterized type which type arguments are its own variable.

In following example:
class X<T> {
  X<T> field;
  X<T> method() {}
}

Searching for reference to generic type X<T> should return exact match for
return type of method(). Currently, this match is an erasure one.
In fact search engine consider all references to a generic type as erasure
matches...
Comment 1 Frederic Fusier CLA 2006-08-03 13:21:49 EDT
See patch for this bug included in proposed patch for bug 124489.
Released for 3.3 M1 in HEAD
Comment 2 Maxime Daniel CLA 2006-08-04 08:53:26 EDT
Verified for 3.3 M1 using build I20060804-0010.