[jdk13u-dev] RFR: 8266082: AssertionError in Annotate.fromAnnotations with -Xdoclint

Alexey Pavlyutkin duke at openjdk.org
Mon Sep 19 14:59:51 UTC 2022


Hi! Here is backport of JDK-8266082 that fixes javac crash on unallowed annotation usage when running with -Xdoclint option. Original patch applied with the following changes:

- it patches DocCommentParser.parseParams() method instead of ReferenceParser.parseParams() cuz in 13u the method belongs to the 1st one yet

Verification (amd64/20.04LTS): tools/doclint/CrashInAnnotateTest.java (new test)
Regression(amd64/20.04LTS): test/langtools

-------------

Commit messages:
 - Backport 0b8a0e2b58dbdd5c9553e502212d32c033a5efb5

Changes: https://git.openjdk.org/jdk13u-dev/pull/410/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk13u-dev&pr=410&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8266082
  Stats: 95 lines in 5 files changed: 95 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk13u-dev/pull/410.diff
  Fetch: git fetch https://git.openjdk.org/jdk13u-dev pull/410/head:pull/410

PR: https://git.openjdk.org/jdk13u-dev/pull/410


More information about the jdk-updates-dev mailing list