Bug 84724

Summary: [1.5][search] fails to find call sites for varargs constructors
Product: [Eclipse Project] JDT Reporter: Robert M. Fuhrer <rfuhrer>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: markus.kell.r
Version: 3.1   
Target Milestone: 3.1 M5   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Robert M. Fuhrer CLA 2005-02-08 13:41:44 EST
The search engine fails to find the call to the varargs constructor in the 
example below. Simply highlight the constructor's name and invoke "References" -
> "Workspace" from the Java editor context menu; no occurrences will be found.
Bug manifests with integration build I2005-0202.

public class Test {
    public void foo() {
        Cell c= new Cell("", ""); // calls Cell.Cell(String...)
    }
}
class Cell {
    public Cell(String... args) { }
}
Comment 1 Markus Keller CLA 2005-02-09 06:29:27 EST

*** This bug has been marked as a duplicate of 84100 ***
Comment 2 Markus Keller CLA 2005-02-09 06:38:00 EST
Oops, that was too fast. This bug is not a dup of bug 84100.
This one is for vararg _constructors_ (the other one is for methods).
Comment 3 Frederic Fusier CLA 2005-02-14 13:06:55 EST
ConstructorLocator should not compare constructor arguments number when last one
is vararg...
Comment 4 Frederic Fusier CLA 2005-02-14 14:17:01 EST
Fixed.

Search engine now find constructors with varargs parameter references.

[jdt-core-internal]
Change done in ConstructorLocator#match(*, MatchingNodeSet) methods.
Test cases added in javaSearchBugsTests
Comment 5 David Audel CLA 2005-02-16 05:41:24 EST
Verified in I20050215-2300