From 967317a3215126f07fdfdf21cf4ff6981202f2e4 Mon Sep 17 00:00:00 2001 From: Googler Date: Fri, 9 Jun 2023 12:15:12 -0700 Subject: [PATCH] Annotation processors should support the latest source version PiperOrigin-RevId: 539146277 Change-Id: I0b960762cf57de825da57a3c324dcc68030119e5 --- src/test/shell/integration/java_integration_test.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test/shell/integration/java_integration_test.sh b/src/test/shell/integration/java_integration_test.sh index da88e91d5fe7ec..9e6c0717dd9e21 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.*; 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"