test/tools/javac/generics/wildcards/neg/AmbiguousCast.java

Print this page

        

*** 25,35 **** * @test * @bug 4897892 * @summary cast to parameterized type is accepted although it should be rejected * @author gafter * ! * @compile/fail -source 1.5 -Werror -Xlint:unchecked AmbiguousCast.java */ class Test { private static class GenericWrapper<Elem> { --- 25,35 ---- * @test * @bug 4897892 * @summary cast to parameterized type is accepted although it should be rejected * @author gafter * ! * @compile/fail -Werror -Xlint:unchecked AmbiguousCast.java */ class Test { private static class GenericWrapper<Elem> {