mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +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
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue