test/tools/javac/processing/6348499/A.java

Print this page

        

*** 26,36 **** import javax.annotation.processing.*; import javax.lang.model.*; import javax.lang.model.element.*; @SupportedAnnotationTypes("*") - @SupportedSourceVersion(SourceVersion.RELEASE_7) public class A extends AbstractProcessor { public boolean process(Set<? extends TypeElement> tes, RoundEnvironment renv) { Filer filer = processingEnv.getFiler(); try { OutputStream out = filer.createClassFile(getClass().getName()+"_0").openOutputStream(); --- 26,35 ----
*** 38,43 **** --- 37,46 ---- } catch (IOException e) { throw new Error(e); } return true; } + @Override + public SourceVersion getSupportedSourceVersion() { + return SourceVersion.latest(); + } }