Bug 84100 - [1.5][search] Search for varargs method not finding match
Summary: [1.5][search] Search for varargs method not finding match
Status: RESOLVED WORKSFORME
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 M5   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-31 18:36 EST by Philipe Mulet CLA
Modified: 2005-02-14 14:17 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 Philipe Mulet CLA 2005-01-31 18:36:00 EST
Build 3.1, 20050126

On following 2 files scenario:
public class X {
	void foo(X... xs) {}
}

public class ZZZ {
 void foo() {
 	new X().foo(new X(), new X());
 }
}   

Selecting X#foo() and searching for references does not find match in ZZZ.

Suspecting index query to not take varargs nature into account (and only looking
for references with 1 argument only).
Comment 1 Markus Keller CLA 2005-02-09 06:29:28 EST
*** Bug 84724 has been marked as a duplicate of this bug. ***
Comment 2 Markus Keller CLA 2005-02-09 06:41:22 EST
Oops, bug 84724 was not a duplicate.
But this bug seems to be fixed in I20050208-0800.
Comment 3 Frederic Fusier CLA 2005-02-14 12:14:11 EST
I confirm that this bug is fixed in last integration build
=> close as WORKSFORME
Comment 4 Frederic Fusier CLA 2005-02-14 14:17:39 EST
Test cases added in javaSearchBugsTests to verify that this kind of search
really works...