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

@ -40,7 +40,6 @@ import javax.lang.model.util.*;
import static javax.lang.model.util.ElementFilter.*;
@SupportedSourceVersion(SourceVersion.RELEASE_6)
@SupportedAnnotationTypes("*")
public class OverridesSpecEx extends AbstractProcessor {
@ -60,6 +59,11 @@ public class OverridesSpecEx extends AbstractProcessor {
return true;
}
@Override
public SourceVersion getSupportedSourceVersion() {
return SourceVersion.latest();
}
private void doit(Set<? extends TypeElement> annoTypes,
RoundEnvironment round) {
TypeElement string = elements.getTypeElement("java.lang.String");