Bug 97087

Summary: [1.5][search] Can't find reference of generic class's constructor.
Product: [Eclipse Project] JDT Reporter: Brian Miller <bmiller>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: dirk_baeumer
Version: 3.1   
Target Milestone: 3.1 RC2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Brian Miller CLA 2005-05-27 17:22:51 EDT
Attempts to find references (in workspace, project, or hierarchy) of the 
constructor Bug() wrongly finds zero references.  I'm using M7.

---------------------- Bug.java --------------------------------
class Bug<Type> {
    Bug(){}
}
class Foo extends Bug<String>{
    Foo(){super();}
}
Comment 1 Brian Miller CLA 2005-05-27 17:26:59 EDT
The above example is a default constructor, but the problem occurs even when 
the constructor has a parameter.
Comment 2 Dirk Baeumer CLA 2005-05-27 17:29:19 EDT
Moving to JDT/Core.
Comment 3 Brian Miller CLA 2005-05-31 10:07:40 EDT
The above example has the two classes in the same source file, but the problem 
also occurs when the classes are in separate source files.
Comment 4 Philipe Mulet CLA 2005-06-07 04:13:34 EDT
+1 for RC2
Comment 5 Frederic Fusier CLA 2005-06-07 08:59:53 EDT
Fixed and released in HEAD.

SourceIndexerRequestor may accept parameterized constructor => use erasure while
accepting type. New search engine finds super constructor references in comment
0 test case.

[jdt-core internal]
Change done in SourceIndexRequestor.acceptConstructorReference(char[],int,int)
Test case added in JavaSearchBugsTests
Comment 6 Frederic Fusier CLA 2005-06-07 09:32:45 EDT
Verified for 3.1 RC2 using build N20050607-0010 +JDT/Core HEAD
Comment 7 Olivier Thomann CLA 2005-06-07 09:49:29 EDT
Verified using N20050606-0010 + JDT/Core HEAD.
Comment 8 Jerome Lanneluc CLA 2005-06-10 08:47:53 EDT
Verified with I20050610-0010