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

Print this page

        

@@ -25,11 +25,11 @@
  * @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
+ * @compile/fail  -Werror -Xlint:unchecked AmbiguousCast.java
  */
 
 class Test {
 
     private static class GenericWrapper<Elem> {