Community
Participate
Working Groups
javac rejects the cast in the following program: class Outer<T extends Number & Comparable<String>> { void foo(T t) { Comparable<Integer> ci = (Comparable<Integer>) t; } }
Added GenericTypeTest#test716
Cast conversion check did not properly handle matching supertype comparison. Fixed
Verified for 3.1 RC2 using build N20050607-0010 + JDT/Core HEAD
Verified for 3.1 RC2 using build I20050610-0010