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

Goetz Lindenmaier goetz at openjdk.org
Fri Sep 16 06:57:48 UTC 2022


On Thu, 15 Sep 2022 13:16:52 GMT, Alexey Pavlyutkin <duke at openjdk.org> wrote:

> 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

Hi Alex, 
please add to your fix request comment
 * Why you want to backport this
 * Your evaluation of the risk of introducing a regression  in 17

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

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


More information about the jdk-updates-dev mailing list