test/tools/javac/processing/model/element/TestResourceVariable.java

Print this page

        

*** 24,33 **** --- 24,35 ---- /* * @test * @bug 6911256 6964740 * @summary Test that the resource variable kind is appropriately set * @author Joseph D. Darcy + * @library ../../../lib + * @build JavacTestingAbstractProcessor * @build TestResourceVariable * @compile/fail -processor TestResourceVariable -proc:only TestResourceVariable.java */ // Bug should be filed for this misbehavior
*** 46,57 **** /** * Using the tree API, retrieve element representations of the * resource of an ARM block and verify their kind tags are set * appropriately. */ ! @SupportedAnnotationTypes("*") ! public class TestResourceVariable extends AbstractProcessor implements AutoCloseable { int resourceVariableCount = 0; public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) { if (!roundEnv.processingOver()) { --- 48,58 ---- /** * Using the tree API, retrieve element representations of the * resource of an ARM block and verify their kind tags are set * appropriately. */ ! public class TestResourceVariable extends JavacTestingAbstractProcessor implements AutoCloseable { int resourceVariableCount = 0; public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) { if (!roundEnv.processingOver()) {
*** 103,113 **** resourceVariableCount++; } return super.visitVariable(node, cu); } } - - @Override - public SourceVersion getSupportedSourceVersion() { - return SourceVersion.latest(); - } } --- 104,109 ----