Bug 97087 - [1.5][search] Can't find reference of generic class's constructor.
Summary: [1.5][search] Can't find reference of generic class's constructor.
Status: CLOSED 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.1 RC2   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-27 17:22 EDT by Brian Miller CLA
Modified: 2005-06-10 08:47 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 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