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

@ -38,7 +38,6 @@ import com.sun.source.util.*;
import com.sun.tools.javac.api.*;
@SupportedAnnotationTypes("*")
@SupportedSourceVersion(SourceVersion.RELEASE_6)
public class T6412669 extends AbstractProcessor {
public static void main(String... args) throws IOException {
String testSrc = System.getProperty("test.src", ".");
@ -72,4 +71,9 @@ public class T6412669 extends AbstractProcessor {
}
return true;
}
@Override
public SourceVersion getSupportedSourceVersion() {
return SourceVersion.latest();
}
}