Bug 84724 - [1.5][search] fails to find call sites for varargs constructors
Summary: [1.5][search] fails to find call sites for varargs constructors
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.1 M5   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-08 13:41 EST by Robert M. Fuhrer CLA
Modified: 2005-02-16 05:41 EST (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 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