test/tools/javac/processing/T6439826.java

Print this page

        

*** 37,47 **** import com.sun.tools.javac.api.*; import static javax.lang.model.util.ElementFilter.*; @SupportedAnnotationTypes("*") - @SupportedSourceVersion(SourceVersion.RELEASE_7 ) public class T6439826 extends AbstractProcessor { public static void main(String... args) { String testSrc = System.getProperty("test.src", "."); String testClasses = System.getProperty("test.classes"); JavacTool tool = JavacTool.create(); --- 37,46 ----
*** 74,83 **** --- 73,87 ---- writeBadFile(); } return false; } + @Override + public SourceVersion getSupportedSourceVersion() { + return SourceVersion.latest(); + } + private void writeBadFile() { Filer filer = processingEnv.getFiler(); Messager messager = processingEnv.getMessager(); try { Writer out = filer.createSourceFile("Foo").openWriter();