langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/processing/JavacProcessingEnvironment.java
changeset 42824 89b14017e8d6
parent 42815 050370edaade
child 42827 36468b5fa7f4
equal deleted inserted replaced
42823:58864b03c7b9 42824:89b14017e8d6
  1361         errorStatus = errorStatus || (compiler.errorCount() > 0);
  1361         errorStatus = errorStatus || (compiler.errorCount() > 0);
  1362 
  1362 
  1363         // Free resources
  1363         // Free resources
  1364         this.close();
  1364         this.close();
  1365 
  1365 
       
  1366         if (errorStatus && compiler.errorCount() == 0) {
       
  1367             compiler.log.nerrors++;
       
  1368         }
       
  1369 
       
  1370         compiler.enterTreesIfNeeded(roots);
       
  1371 
  1366         if (!taskListener.isEmpty())
  1372         if (!taskListener.isEmpty())
  1367             taskListener.finished(new TaskEvent(TaskEvent.Kind.ANNOTATION_PROCESSING));
  1373             taskListener.finished(new TaskEvent(TaskEvent.Kind.ANNOTATION_PROCESSING));
  1368 
       
  1369         if (errorStatus && compiler.errorCount() == 0) {
       
  1370             compiler.log.nerrors++;
       
  1371         }
       
  1372 
       
  1373         compiler.enterTreesIfNeeded(roots);
       
  1374 
  1374 
  1375         return true;
  1375         return true;
  1376     }
  1376     }
  1377 
  1377 
  1378     private void warnIfUnmatchedOptions() {
  1378     private void warnIfUnmatchedOptions() {