test/tools/javac/enum/EnumProtectedConstructor.java

Print this page

        

@@ -25,11 +25,11 @@
  * @test
  * @bug 5009601
  * @summary enum constructors cannot be declared public or protected
  * @author Joseph D. Darcy
  *
- * @compile/fail -source 1.5 EnumProtectedConstructor.java
+ * @compile/fail EnumProtectedConstructor.java
  */
 
 enum EnumProtectedConstructor {
     RED(255, 0, 0),
     GREEN(0, 255, 0),