diff -r d02e088255a0 -r 88930a1c409e langtools/test/tools/javac/processing/werror/WErrorGen.java --- 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 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; }