langtools/test/tools/javac/6341866/Anno.java
changeset 4935 ff8adaa7bb8e
parent 2983 1d164c36212a
child 5520 86e4b9a9da40
equal deleted inserted replaced
4934:c6a2cf3b6b82 4935:ff8adaa7bb8e
    25 import javax.annotation.processing.*;
    25 import javax.annotation.processing.*;
    26 import javax.lang.model.*;
    26 import javax.lang.model.*;
    27 import javax.lang.model.element.*;
    27 import javax.lang.model.element.*;
    28 
    28 
    29 @SupportedAnnotationTypes("*")
    29 @SupportedAnnotationTypes("*")
    30     @SupportedSourceVersion(SourceVersion.RELEASE_7)
       
    31 public class Anno extends AbstractProcessor {
    30 public class Anno extends AbstractProcessor {
    32     public boolean process(Set<? extends TypeElement> annotations,
    31     public boolean process(Set<? extends TypeElement> annotations,
    33                                     RoundEnvironment roundEnv) {
    32                                     RoundEnvironment roundEnv) {
    34         //if (!roundEnv.processingOver())
    33         //if (!roundEnv.processingOver())
    35         //    System.err.println("annotation processing");
    34         //    System.err.println("annotation processing");
    36         return true;
    35         return true;
    37     }
    36     }
       
    37 
       
    38     @Override
       
    39     public SourceVersion getSupportedSourceVersion() {
       
    40         return SourceVersion.latest();
       
    41     }
    38 }
    42 }