Bug 84121 - [1.5][search][varargs] reference to type reported as inaccurate in vararg
Summary: [1.5][search][varargs] reference to type reported as inaccurate in vararg
Status: VERIFIED 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 M6   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-01 04:32 EST by Markus Keller CLA
Modified: 2005-03-30 15:54 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2005-02-01 04:32:30 EST
I20050126-0800

A reference to a type is reported as inaccurate if the type occurs in a vararg
method:

class Foo {
	void bar(Foo... foos) {} // reference to Foo is "potential"
}
Comment 1 Frederic Fusier CLA 2005-02-28 14:47:28 EST
Fixed.

Wrong reference were stored by MatchLocatorParser for Test...
(SingleTypeReference instead of ArrayTypeReference). Now Search engine correctly
found exact match to Test reference.

[jdt-core-internal]
Change done in Parser.consumeFormalParameter(boolean). I've also modified all
parsers where this method was overriden (not currently necessary but may be...).
Test case added in JavaSearchBugsTests
Comment 2 Olivier Thomann CLA 2005-03-30 15:54:21 EST
Verified in I20050330-0500
Comment 3 Olivier Thomann CLA 2005-03-30 15:54:28 EST
Verified in I20050330-0500