Summary: | Improper warning for varargs argument of parameterized type | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | John Bollinger <jbollinger> |
Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> |
Status: | RESOLVED WORKSFORME | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | markus.kell.r |
Version: | 3.1 | ||
Target Milestone: | 3.2 M5 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
John Bollinger
2005-02-24 11:02:54 EST
Cannot reproduce in 3.1. This code is compiled without any warning: public class UnionIterator<E> { public UnionIterator(Collection<? extends E>... arg) { } void test(Collection<? extends E>[] collections) { UnionIterator<E> iterator = new UnionIterator<E>(collections); } } class UnionIterTest { static <T> void test(Collection<? extends T>[] collections) { UnionIterator<T> iterator = new UnionIterator<T>(collections); } } I agree that the warning observed under 3.1 M4 is not observed under 3.1.0. Evidently this issue has been resolved. Thanks for looking into it. closing |