Bug 116459 - [1.5][search] Generic type reference should return exact match on parameterized type with its own variables
Summary: [1.5][search] Generic type reference should return exact match on parameteriz...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3 M1   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-15 12:02 EST by Frederic Fusier CLA
Modified: 2006-08-04 08:53 EDT (History)
1 user (show)

See Also:


Attachments

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