Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8295850

Backport of JDK-8193462 to JDK 11 reintroduces JDK-8222091

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • 11-pool-oracle
    • 11.0.17
    • tools
    • None

      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
      ^

            cstein Christian Stein
            cushon Liam Miller-Cushon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: