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

In some corner cases the javadoc tool can reuse id attribute

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 10
    • 10
    • tools
    • b27
    • generic
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: