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

Alexey Pavlyutkin duke at openjdk.org
Thu Sep 15 13:23:39 UTC 2022


Hi! Here is backport of JDK-8266082 that fixes AssertionError in Annotate.fromAnnotations when is running with -Xdoclint. Original patch applied cleanly

Verification (amd64/20.04LTS):

alex at alex-VirtualBox:~/jdk17u-dev$ cat <<EOT>> LinkAnno.java
/** {@link #equals(@Deprecated Object)} */
class LinkAnno {
}
EOT
alex at alex-VirtualBox:~/jdk17u-dev$ ./build/linux-x86_64-server-release/images/jdk/bin/javac -fullversion -Xdoclint LinkAnno.java
javac full version "17.0.6-internal+0-adhoc.alex.jdk17u-dev"
LinkAnno.java:3: error: annotations not allowed
{@link #equals(@Deprecated Object)}
^
1 error

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

Commit messages:
 - Backport 0b8a0e2b58dbdd5c9553e502212d32c033a5efb5

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

PR: https://git.openjdk.org/jdk17u-dev/pull/675


More information about the jdk-updates-dev mailing list