--- old/test/tools/javac/enum/6424358/T6424358.java 2010-02-15 20:05:59.000000000 -0800 +++ new/test/tools/javac/enum/6424358/T6424358.java 2010-02-15 20:05:59.000000000 -0800 @@ -34,13 +34,12 @@ import javax.annotation.processing.*; import javax.lang.model.element.*; import javax.lang.model.util.*; +import javax.lang.model.SourceVersion; import static javax.tools.Diagnostic.Kind.*; -import static javax.lang.model.SourceVersion.RELEASE_6; @interface TestMe {} @SupportedAnnotationTypes("*") -@SupportedSourceVersion(RELEASE_6) public class T6424358 extends AbstractProcessor { @TestMe enum Test { FOO; } @@ -66,4 +65,9 @@ scan.scan(e); return true; } + + @Override + public SourceVersion getSupportedSourceVersion() { + return SourceVersion.latest(); + } }