langtools/test/tools/javac/processing/werror/WErrorGen.java
changeset 6159 88930a1c409e
parent 6153 277c719ff46e
child 6720 f16f91662ad8
--- a/langtools/test/tools/javac/processing/werror/WErrorGen.java	Thu Jul 29 19:27:11 2010 -0700
+++ b/langtools/test/tools/javac/processing/werror/WErrorGen.java	Thu Jul 29 19:30:35 2010 -0700
@@ -42,7 +42,7 @@
     public boolean process(Set<? extends TypeElement> annotations,
                            RoundEnvironment roundEnv) {
         Filer filer = processingEnv.getFiler();
-        if (roundEnv.processingOver()) {
+        if (++round == 1) {
             try {
                 JavaFileObject fo = filer.createSourceFile("Gen");
                 Writer out = fo.openWriter();
@@ -58,4 +58,6 @@
     public SourceVersion getSupportedSourceVersion() {
         return SourceVersion.latest();
     }
+
+    int round = 0;
 }