6926699: Annotation processing regression tests should typically return SourceVersion.latest

Reviewed-by: jjg
This commit is contained in:
Joe Darcy 2010-02-15 20:06:11 -08:00
parent 1fb4cb4242
commit 779ba4bd83
19 changed files with 90 additions and 21 deletions

View file

@ -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();