changeset 321:85b7e7326978

Generators: APT processor should mention the latest release.
author shade
date Fri, 23 Sep 2016 12:09:31 +0200
parents 9779169466dc
children 0eecf3f89210
files jcstress-core/src/main/java/org/openjdk/jcstress/infra/processors/JCStressTestProcessor.java
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/jcstress-core/src/main/java/org/openjdk/jcstress/infra/processors/JCStressTestProcessor.java	Wed Sep 21 08:36:47 2016 +0200
+++ b/jcstress-core/src/main/java/org/openjdk/jcstress/infra/processors/JCStressTestProcessor.java	Fri Sep 23 12:09:31 2016 +0200
@@ -48,13 +48,18 @@
 import java.util.concurrent.*;
 import java.util.concurrent.atomic.AtomicIntegerFieldUpdater;
 
-
-@SupportedSourceVersion(SourceVersion.RELEASE_6)
 public class JCStressTestProcessor extends AbstractProcessor {
 
     private final List<TestInfo> tests = new ArrayList<>();
 
     @Override
+    public SourceVersion getSupportedSourceVersion() {
+        // We may claim to support the latest version, since we are not using
+        // any version-specific extensions.
+        return SourceVersion.latest();
+    }
+
+    @Override
     public Set<String> getSupportedAnnotationTypes() {
         return Collections.singleton(JCStressTest.class.getName());
     }