mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 10:34:38 +02:00
6926699: Annotation processing regression tests should typically return SourceVersion.latest
Reviewed-by: jjg
This commit is contained in:
parent
1fb4cb4242
commit
779ba4bd83
19 changed files with 90 additions and 21 deletions
|
@ -39,7 +39,6 @@ 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", ".");
|
||||
|
@ -76,6 +75,11 @@ public class T6439826 extends AbstractProcessor {
|
|||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SourceVersion getSupportedSourceVersion() {
|
||||
return SourceVersion.latest();
|
||||
}
|
||||
|
||||
private void writeBadFile() {
|
||||
Filer filer = processingEnv.getFiler();
|
||||
Messager messager = processingEnv.getMessager();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue