test/tools/javac/api/6468404/T6468404.java

Print this page

        

@@ -103,11 +103,10 @@
         return "public class " + n + " {" + n + "(java.util.List<String> l) {}}";
     }
 }
 
 @SupportedAnnotationTypes("*")
-@SupportedSourceVersion(SourceVersion.RELEASE_6)
 class P extends AbstractProcessor {
     boolean ran = false;
 
     Elements elements;
 

@@ -143,6 +142,11 @@
                 throw new AssertionError(type);
             System.err.println();
         }
         return true;
     }
+
+    @Override
+    public SourceVersion getSupportedSourceVersion() {
+        return SourceVersion.latest();
+    }
 }