test/tools/javac/processing/model/element/TestResourceVariable.java
Print this page
@@ -24,10 +24,12 @@
/*
* @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,12 +48,11 @@
/**
* 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 {
+public class TestResourceVariable extends JavacTestingAbstractProcessor implements AutoCloseable {
int resourceVariableCount = 0;
public boolean process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv) {
if (!roundEnv.processingOver()) {
@@ -103,11 +104,6 @@
resourceVariableCount++;
}
return super.visitVariable(node, cu);
}
}
-
- @Override
- public SourceVersion getSupportedSourceVersion() {
- return SourceVersion.latest();
- }
}