JDK-8295850 : Backport of JDK-8193462 to JDK 11 reintroduces JDK-8222091
  • Type: Bug
  • Component: tools
  • Sub-Component: javadoc(tool)
  • Affected Version: 11.0.17
  • Priority: P2
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2022-10-24
  • Updated: 2022-11-04
  • Resolved: 2022-11-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11
11-pool-oracleResolved
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
JDK 11.0.7 is exhibiting the regression from https://bugs.openjdk.org/browse/JDK-8222091.

I think the culprit for the original regression was https://bugs.openjdk.org/browse/JDK-8193462, which was recently backported to JDK 11u. The fix in JDK-8222091 should also be backported.

=== A.java
package p;

import static java.lang.annotation.ElementType.PACKAGE;

import java.lang.annotation.Target;

@Target(PACKAGE)
public @interface A {}
=== package-info.java
@A
package p;
===

The following invocation passes with 11.0.16 and fails with 11.0.17:

$ javadoc package-info.java A.java
...
package-info.java:1: error: unknown tag: A
@A
^
Comments
I'm not sure what the normal process is for tracking regressions like this, but I have requested a backport in JDK-8222091 - https://bugs.openjdk.org/browse/JDK-8222091?focusedCommentId=14531922&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-14531922
02-11-2022