test/tools/javac/generics/wildcards/pos/AmbiguousCast2.java
Print this page
*** 25,35 ****
* @test
* @bug 4856982
* @summary generics: unable to cast between two convertible types
* @author gafter
*
! * @compile -source 1.5 AmbiguousCast2.java
*/
import java.lang.ref.*;
class Test<K, V> extends WeakReference<V> {
--- 25,35 ----
* @test
* @bug 4856982
* @summary generics: unable to cast between two convertible types
* @author gafter
*
! * @compile AmbiguousCast2.java
*/
import java.lang.ref.*;
class Test<K, V> extends WeakReference<V> {