Community
Participate
Working Groups
Take the following code as example, an wrong warning message "Unnecessary cast from C1<?>.C11[] to C1<T>.C11[]". But the casting is really needed. Without it, another "type mismatch" error will happen. example: class C1<T> { class C11 { } class C12 { T t; C1<T>.C11[] m() { C1<T>.C11[] ts = (C1<T>.C11[]) new C1<?>.C11[5]; return ts; } } }
Will only warn if the cast type exactly matches a supertype, and not only on compatible matches (using raw or wildcard types). Added GenericTypeTest#test832
*** Bug 100809 has been marked as a duplicate of this bug. ***
Verified for 3.2 M3 using build I20051025-0800+JDT/Core v_618a