Bug 81244

Summary: error range for generic vararg argument
Product: [Eclipse Project] JDT Reporter: Tobias Widmer <tobias_widmer>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: martinae
Version: 3.1   
Target Milestone: 3.1 M5   
Hardware: PC   
OS: All   
Whiteboard:

Description Tobias Widmer CLA 2004-12-15 12:09:19 EST
200412142000:

void foo(List<String>... args) {}

Verify that java.util.List is not imported
Comment 1 Martin Aeschlimann CLA 2005-02-03 12:24:28 EST
the error range spans 'List<String>...'.As soon as you take away the dots, only
'List'is marked.

As the error is 'List cannot be resolved to a type I think it would be better to
have only 'List' marked.
If you disagree please move it back, I'll change the quick fix then. 
Comment 2 Olivier Thomann CLA 2005-02-10 14:29:00 EST
I'll check what we do.
Comment 3 Olivier Thomann CLA 2005-02-10 17:43:06 EST
Fixed and released in HEAD.
Regression test added in ComplianceDiagnoseTest.test050.
Comment 4 Olivier Thomann CLA 2005-02-10 17:57:52 EST
I also changed the corresponding qualified type to be consistent.
Comment 5 Frederic Fusier CLA 2005-02-16 12:18:10 EST
Verified with 3.1 M5 candidate (I20040215-2300)