Skip to content

Commit

Permalink
Annotation processors should support the latest source version
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 539146277
Change-Id: I0b960762cf57de825da57a3c324dcc68030119e5
  • Loading branch information
cushon authored and werkt committed Jun 13, 2023
1 parent 5e1286b commit 967317a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/shell/integration/java_integration_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 967317a

Please sign in to comment.