Annotation processors should support the latest source version
PiperOrigin-RevId: 539146277
Change-Id: I0b960762cf57de825da57a3c324dcc68030119e5
diff --git a/src/test/shell/integration/java_integration_test.sh b/src/test/shell/integration/java_integration_test.sh
index da88e91..9e6c071 100755
--- a/src/test/shell/integration/java_integration_test.sh
+++ b/src/test/shell/integration/java_integration_test.sh
@@ -590,6 +590,10 @@
import javax.lang.model.element.*;
@SupportedAnnotationTypes(value= {"test.processor.TestAnnotation"})
public class Processor extends AbstractProcessor {
+ @Override
+ public SourceVersion getSupportedSourceVersion() {
+ return SourceVersion.latestSupported();
+ }
private static final String OUTFILE_CONTENT = "package test;\n"
+ "public class Generated {\n"
+ " public static String value = \"" + ProcessorDep.value + "\";\n"