langtools/src/share/classes/com/sun/tools/javac/processing/JavacProcessingEnvironment.java
equal
deleted
inserted
replaced
876 compiler = JavaCompiler.instance(currentContext); |
876 compiler = JavaCompiler.instance(currentContext); |
877 List<JCCompilationUnit> parsedFiles = sourcesToParsedFiles(compiler); |
877 List<JCCompilationUnit> parsedFiles = sourcesToParsedFiles(compiler); |
878 roots = cleanTrees(roots).appendList(parsedFiles); |
878 roots = cleanTrees(roots).appendList(parsedFiles); |
879 |
879 |
880 // Check for errors after parsing |
880 // Check for errors after parsing |
881 if (compiler.parseErrors()) { |
881 if (log.unrecoverableError) { |
882 errorStatus = true; |
882 errorStatus = true; |
883 break runAround; |
883 break runAround; |
884 } else { |
884 } else { |
885 List<ClassSymbol> newClasses = enterNewClassFiles(currentContext); |
885 List<ClassSymbol> newClasses = enterNewClassFiles(currentContext); |
886 compiler.enterTrees(roots); |
886 compiler.enterTrees(roots); |
910 } |
910 } |
911 } |
911 } |
912 roots = runLastRound(xout, roundNumber, errorStatus, compiler, roots, taskListener); |
912 roots = runLastRound(xout, roundNumber, errorStatus, compiler, roots, taskListener); |
913 // Set error status for any files compiled and generated in |
913 // Set error status for any files compiled and generated in |
914 // the last round |
914 // the last round |
915 if (compiler.parseErrors()) |
915 if (log.unrecoverableError) |
916 errorStatus = true; |
916 errorStatus = true; |
917 |
917 |
918 compiler.close(false); |
918 compiler.close(false); |
919 currentContext = contextForNextRound(currentContext, true); |
919 currentContext = contextForNextRound(currentContext, true); |
920 compiler = JavaCompiler.instance(currentContext); |
920 compiler = JavaCompiler.instance(currentContext); |