Community
Participate
Working Groups
3.3M3 Probably a dup, but likely interesting simply testcase: Both cast should be rejected, we only complain about the latter. class Z1 { void foo(ArrayList<Object> a) { Object o = (List<? extends String>) a; // ko } void bar(List<Object> a) { Object o = (ArrayList<? extends String>) a; // ko } }
Fixed along with changes for bug 158870. Added GenericTypeTest#test1192 Released for 3.4M3 Fixed
Verified for 3.4 M3 using build I20071029-0010.