src/share/classes/com/sun/tools/javac/main/JavaCompiler.java

changeset 711
14a707f8ce84
parent 700
7b413ac1a720
child 726
2974d3800eb1
equal deleted inserted replaced
710:68cf07910d74 711:14a707f8ce84
509 */ 509 */
510 protected Set<JavaFileObject> inputFiles = new HashSet<JavaFileObject>(); 510 protected Set<JavaFileObject> inputFiles = new HashSet<JavaFileObject>();
511 511
512 protected boolean shouldStop(CompileState cs) { 512 protected boolean shouldStop(CompileState cs) {
513 if (shouldStopPolicy == null) 513 if (shouldStopPolicy == null)
514 return (errorCount() > 0); 514 return (errorCount() > 0 || unrecoverableError());
515 else 515 else
516 return cs.ordinal() > shouldStopPolicy.ordinal(); 516 return cs.ordinal() > shouldStopPolicy.ordinal();
517 } 517 }
518 518
519 /** The number of errors reported so far. 519 /** The number of errors reported so far.

mercurial