test/tools/javac/processing/model/type/NoTypes.java
Print this page
@@ -37,12 +37,10 @@
import javax.lang.model.type.*;
import javax.lang.model.util.*;
import static javax.lang.model.type.TypeKind.*;
-
-@SupportedSourceVersion(SourceVersion.RELEASE_6)
@SupportedAnnotationTypes("*")
public class NoTypes extends AbstractProcessor {
Elements elements;
Types types;
@@ -58,10 +56,15 @@
if (!round.processingOver())
doit(annoTypes, round);
return true;
}
+ @Override
+ public SourceVersion getSupportedSourceVersion() {
+ return SourceVersion.latest();
+ }
+
private void doit(Set<? extends TypeElement> annoTypes,
RoundEnvironment round) {
// The superclass of Object is NONE.
TypeElement object = elements.getTypeElement("java.lang.Object");