test/tools/javac/T6423583.java

Print this page

        

@@ -35,11 +35,10 @@
 import javax.lang.model.element.*;
 import com.sun.source.tree.*;
 import com.sun.source.util.*;
 
 @SupportedAnnotationTypes("*")
-@SupportedSourceVersion(SourceVersion.RELEASE_6)
 public class T6423583 extends AbstractProcessor {
     boolean b1 = true;
     boolean b2 = false;
     String s = "s";
     char c = 'c';

@@ -57,10 +56,14 @@
             test.scan(t, null);
         }
         return true;
     }
 
+    @Override
+    public SourceVersion getSupportedSourceVersion() {
+        return SourceVersion.latest();
+    }
 
     private static class Test extends TreeScanner<Void,Void> {
 
         private static Map<Tree.Kind, Class> map = new HashMap<Tree.Kind, Class>();
         static {