test/tools/javac/processing/model/util/GetTypeElemBadArg.java
Print this page
@@ -35,11 +35,10 @@
import javax.lang.model.SourceVersion;
import javax.lang.model.element.*;
import javax.lang.model.type.*;
import javax.lang.model.util.*;
-@SupportedSourceVersion(SourceVersion.RELEASE_6)
@SupportedAnnotationTypes("*")
public class GetTypeElemBadArg extends AbstractProcessor {
Elements elements;
@@ -62,10 +61,16 @@
throw new AssertionError();
}
return true;
}
+
+ @Override
+ public SourceVersion getSupportedSourceVersion() {
+ return SourceVersion.latest();
+ }
+
private static void tellAbout(TypeElement t) {
System.out.println(t);
System.out.println(t.getClass());
System.out.println(t.getKind());
System.out.println();