test/tools/javac/generics/UncheckedCovariance.java

Print this page

        

@@ -25,12 +25,12 @@
  * @test
  * @bug 4949303
  * @summary A method returning a raw type cannot override a method returning a generic type
  * @author gafter
  *
- * @compile -source 1.5 UncheckedCovariance.java
- * @compile/fail -Xlint:unchecked -Werror -source 1.5 UncheckedCovariance.java
+ * @compile  UncheckedCovariance.java
+ * @compile/fail -Xlint:unchecked -Werror  UncheckedCovariance.java
  */
 
 class UncheckedCovariance {
     static class Box<T> { }
     static class A {