--- a/langtools/test/tools/javac/processing/6634138/T6634138.java Wed Sep 29 14:01:37 2010 -0700
+++ b/langtools/test/tools/javac/processing/6634138/T6634138.java Wed Sep 29 23:27:57 2010 -0700
@@ -26,6 +26,8 @@
* @bug 6634138
* @author Joseph D. Darcy
* @summary Verify source files output after processing is over are compiled
+ * @library ../../lib
+ * @build JavacTestingAbstractProcessor
* @compile T6634138.java
* @compile -processor T6634138 Dummy.java
* @run main ExerciseDependency
@@ -44,10 +46,7 @@
import javax.lang.model.element.*;
import javax.lang.model.util.*;
-@SupportedAnnotationTypes("*")
-public class T6634138 extends AbstractProcessor {
- private Filer filer;
-
+public class T6634138 extends JavacTestingAbstractProcessor {
public boolean process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnvironment) {
// Write out files *after* processing is over.
@@ -77,16 +76,6 @@
}
return true;
}
-
- @Override
- public SourceVersion getSupportedSourceVersion() {
- return SourceVersion.latest();
- }
-
- public void init(ProcessingEnvironment processingEnv) {
- super.init(processingEnv);
- filer = processingEnv.getFiler();
- }
}