Bug 84121

Summary: [1.5][search][varargs] reference to type reported as inaccurate in vararg
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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