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

In some corner cases the javadoc tool can reuse id attribute

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b27
    • CPU:
      generic
    • OS:
      generic

      Description

      For the code below the javadoc tool will generate the same id attribute for a different elements. In the code take a look to the name of the method "public void EditorContainer()"

      ======================
      package javadoc;

      /**
       * Some description....
       */
      public class SomeClass {

          /**
           * Some description....
           */
          public class EditorContainer {

              /**
               * Some description....
               */
              public EditorContainer() {
              }

              /**
               * Some description....
               */
              public void EditorContainer() {
              }
          }
      }
      ======================


      The link for convenience
      http://cr.openjdk.java.net/~serb/tmp/reuse_id/doc/javadoc/SomeClass.EditorContainer.html

      Note these html parts:

      <h3>Constructor Detail</h3>
      <a name="EditorContainer--">
      <!-- -->
      </a>

      <h3>Method Detail</h3>
      <a name="EditorContainer--">
      <!-- -->
      </a>


      Of course this is the corner case, but it is exists in the Swing. So I cannot fully clean the tidy warnings.

        Attachments

          Activity

            People

            Assignee:
            jjg Jonathan Gibbons
            Reporter:
            serb Sergey Bylokhov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: