test/tools/javac/T6411379.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 T6411379 extends AbstractProcessor {
 
     public boolean process(Set<? extends TypeElement> annoElems,
                                     RoundEnvironment renv) {
         Trees trees = Trees.instance(processingEnv);

@@ -56,10 +55,15 @@
             }
         }
         return true;
     }
 
+    @Override
+    public SourceVersion getSupportedSourceVersion() {
+        return SourceVersion.latest();
+    }
+
     public void checkNull(Object o) {
         if (o != null)
             throw new AssertionError("expected null");
     }
 }