hg: jdk/submit: 8217381: Incovenient errors reported when annotation processor generates source file and errors in the same round

jan.lahoda at oracle.com jan.lahoda at oracle.com
Fri Feb 15 11:12:48 UTC 2019


Changeset: 454d54d8af1c
Author:    jlahoda
Date:      2019-02-15 12:09 +0100
URL:       http://hg.openjdk.java.net/jdk/submit/rev/454d54d8af1c

8217381: Incovenient errors reported when annotation processor generates source file and errors in the same round
Summary: When an annotation processor reports and error, defer reporting recoverable errors from the erroneous round to the last round, to avoid reporting errors that were resolved in the erroneous round.
Reviewed-by: jjg

! src/jdk.compiler/share/classes/com/sun/tools/javac/api/JavacTrees.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/main/JavaCompiler.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/processing/JavacMessager.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/processing/JavacProcessingEnvironment.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/util/JCDiagnostic.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/util/Log.java
! test/langtools/tools/javac/6304921/TestLog.java
! test/langtools/tools/javac/processing/6994946/SemanticErrorTest.2.out
! test/langtools/tools/javac/processing/6994946/TestProcessor.java
+ test/langtools/tools/javac/processing/GenerateAndError.java
+ test/langtools/tools/javac/processing/GenerateAndError.out
+ test/langtools/tools/javac/processing/GenerateAndErrorTest.java



More information about the jdk-submit-changes mailing list