Summary: | [1.5][compiler] eclipse doesn't emit unchecked warning | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Nikolay Metchev <nikolaymetchev> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | markus.kell.r, Mike_Wilson |
Version: | 3.2 | Keywords: | api |
Target Milestone: | 3.2 M6 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Nikolay Metchev
2006-02-17 09:59:33 EST
Added support for varargs parameter generic array creation. Will now issue: WARNING in Test.java (at line 15) this.<Integer>m3(this.<Integer>m(3,3,3,3,3)); //javac complains here ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Type safety : A generic array of Iterable<Integer> is created for a varargs parameter Added GenericTypeTest#test0949-0952. Fixed *** Bug 106325 has been marked as a duplicate of this bug. *** There is indeed a minor API addition (a new problem ID = constant). There is no way this one can be avoided. No one could be dependant upon it, since this problem wasn't detected before, though it should have been. Mike - would you please cast your vote ? The addition is a new constant field on IProblem /** @since 3.2 */ int UnsafeGenericArrayForVarargs = MethodRelated + 574; I don't see how this could be a problem. +1. ok to proceed. Verified for 3.2 M6 using build I20060328-0010 |