On Mon, 14 Jun 2021 13:35:35 GMT, Joel Borggrén-Franck <jfra...@openjdk.org> wrote:
> Javac crashes in Annotate when a javadoc reference contains an annotated > type, since attribType expects type annotations to have been attributed. > > This proposed fix checks references at parse time to disallow annotated types > instead of crashing later on. > > Since the exact type of error is known I opted for a new error message to > make it easier for the developer to see what is wrong. > > Since this affects javac at least as far back as jdk 11 and we are past RDP1 > I targeted this for 18. This pull request has now been integrated. Changeset: 0b8a0e2b Author: Joel Borggrén-Franck <jfra...@openjdk.org> URL: https://git.openjdk.java.net/jdk/commit/0b8a0e2b58dbdd5c9553e502212d32c033a5efb5 Stats: 96 lines in 5 files changed: 95 ins; 0 del; 1 mod 8266082: AssertionError in Annotate.fromAnnotations with -Xdoclint Reviewed-by: vromero ------------- PR: https://git.openjdk.java.net/jdk/pull/4483