test/tools/javac/enum/6424358/T6424358.java

changeset 495
fe17a9dbef03
parent 1
9a66ca7c79fa
child 554
9d9f26857129
     1.1 --- a/test/tools/javac/enum/6424358/T6424358.java	Mon Feb 15 18:20:57 2010 -0800
     1.2 +++ b/test/tools/javac/enum/6424358/T6424358.java	Mon Feb 15 20:06:11 2010 -0800
     1.3 @@ -34,13 +34,12 @@
     1.4  import javax.annotation.processing.*;
     1.5  import javax.lang.model.element.*;
     1.6  import javax.lang.model.util.*;
     1.7 +import javax.lang.model.SourceVersion;
     1.8  import static javax.tools.Diagnostic.Kind.*;
     1.9 -import static javax.lang.model.SourceVersion.RELEASE_6;
    1.10  
    1.11  @interface TestMe {}
    1.12  
    1.13  @SupportedAnnotationTypes("*")
    1.14 -@SupportedSourceVersion(RELEASE_6)
    1.15  public class T6424358 extends AbstractProcessor {
    1.16      @TestMe enum Test { FOO; }
    1.17  
    1.18 @@ -66,4 +65,9 @@
    1.19              scan.scan(e);
    1.20          return true;
    1.21      }
    1.22 +
    1.23 +    @Override
    1.24 +    public SourceVersion getSupportedSourceVersion() {
    1.25 +        return SourceVersion.latest();
    1.26 +    }
    1.27  }

mercurial