Bug 81244 - error range for generic vararg argument
Summary: error range for generic vararg argument
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 3.1 M5   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-15 12:09 EST by Tobias Widmer CLA
Modified: 2005-02-16 12:18 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 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)