mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
6973626: test/tools/javac/processing/* tests fail with assertions enabled
Reviewed-by: darcy
This commit is contained in:
parent
74210780a0
commit
0c1962f5de
1 changed files with 8 additions and 6 deletions
|
@ -900,11 +900,11 @@ public class JavacProcessingEnvironment implements ProcessingEnvironment, Closea
|
|||
|
||||
/** Run a processing round. */
|
||||
void run(boolean lastRound, boolean errorStatus) {
|
||||
assert lastRound
|
||||
? (topLevelClasses.size() == 0 && annotationsPresent.size() == 0)
|
||||
: (errorStatus == false);
|
||||
|
||||
printRoundInfo(topLevelClasses, annotationsPresent, lastRound);
|
||||
// assert lastRound
|
||||
// ? (topLevelClasses.size() == 0 && annotationsPresent.size() == 0)
|
||||
// : (errorStatus == false);
|
||||
//
|
||||
// printRoundInfo(topLevelClasses, annotationsPresent, lastRound);
|
||||
|
||||
TaskListener taskListener = context.get(TaskListener.class);
|
||||
if (taskListener != null)
|
||||
|
@ -912,6 +912,7 @@ public class JavacProcessingEnvironment implements ProcessingEnvironment, Closea
|
|||
|
||||
try {
|
||||
if (lastRound) {
|
||||
printRoundInfo(List.<ClassSymbol>nil(), Collections.<TypeElement>emptySet(), lastRound);
|
||||
filer.setLastRound(true);
|
||||
Set<Element> emptyRootElements = Collections.emptySet(); // immutable
|
||||
RoundEnvironment renv = new JavacRoundEnvironment(true,
|
||||
|
@ -920,6 +921,7 @@ public class JavacProcessingEnvironment implements ProcessingEnvironment, Closea
|
|||
JavacProcessingEnvironment.this);
|
||||
discoveredProcs.iterator().runContributingProcs(renv);
|
||||
} else {
|
||||
printRoundInfo(topLevelClasses, annotationsPresent, lastRound);
|
||||
discoverAndRunProcs(context, annotationsPresent, topLevelClasses, packageInfoFiles);
|
||||
}
|
||||
} finally {
|
||||
|
@ -947,7 +949,7 @@ public class JavacProcessingEnvironment implements ProcessingEnvironment, Closea
|
|||
boolean lastRound) {
|
||||
if (printRounds || verbose) {
|
||||
log.printNoteLines("x.print.rounds",
|
||||
number,
|
||||
(!lastRound ? number : number + 1),
|
||||
"{" + topLevelClasses.toString(", ") + "}",
|
||||
annotationsPresent,
|
||||
lastRound);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue