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

javadoc generates some invalid anchors

XMLWordPrintable

      Anchor definition in the source code:
      jdk/src/java.desktop/share/classes/javax/swing/JTree.java, line 44

      <a name="jtree_description"></a>

      javadoc generates links of the following form:
      <div class="block"><a name="../../../javax/swing/jtree_description"></a>
      causing warning "<a> cannot copy name attribute to id":


      api/java/io/class-use/Serializable.html
      line 11655 column 20 - Warning: <a> cannot copy name attribute to id
      0 error(s), 1 warning(s)

      api/java/lang/class-use/SuppressWarnings.html
      line 3884 column 20 - Warning: <a> cannot copy name attribute to id
      0 error(s), 1 warning(s)

      api/java/awt/image/class-use/ImageObserver.html
      line 929 column 20 - Warning: <a> cannot copy name attribute to id
      0 error(s), 1 warning(s)

      api/java/awt/class-use/Container.html
      line 1202 column 20 - Warning: <a> cannot copy name attribute to id
      0 error(s), 1 warning(s)

      api/java/awt/class-use/MenuContainer.html
      line 762 column 20 - Warning: <a> cannot copy name attribute to id
      0 error(s), 1 warning(s)

      api/java/awt/class-use/Component.html
      line 2119 column 20 - Warning: <a> cannot copy name attribute to id
      0 error(s), 1 warning(s)

      api/javax/swing/class-use/JComponent.html
      line 548 column 20 - Warning: <a> cannot copy name attribute to id
      0 error(s), 1 warning(s)

      api/javax/swing/class-use/Scrollable.html
      line 196 column 20 - Warning: <a> cannot copy name attribute to id
      0 error(s), 1 warning(s)

      api/javax/accessibility/class-use/Accessible.html
      line 1011 column 20 - Warning: <a> cannot copy name attribute to id
      0 error(s), 1 warning(s)


      If there exists some workaround to fix the warnings (just fixing the initial source file) please let me know.

            Unassigned Unassigned
            avstepan Alexander Stepanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: