test/tools/javac/processing/model/type/NoTypes.java

Print this page

        

*** 37,48 **** 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; --- 37,46 ----
*** 58,67 **** --- 56,70 ---- 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");