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

Incorrect ordering of spaces in javadoc

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 5.0
    • tools

      Javadoc for java.util.regex.Pattern contains incorrect sequence of tags which is not rendered correctly by java html renderer. The sequence is:

      <DL>...<PRE>...</DL>...</PRE>

      Thus rendered HTML leads to:

      public final class Patternextends Objectimplements Serializable

      For more details see this issue:

      http://www.netbeans.org/issues/show_bug.cgi?id=66342

      It was workarounded in NetBeans 5.0 but the issue is reproducible in 4.1 or earlier.
      Javadoc for javax.swing.BoundedRangeModel when rendered with java html rendered is:
      min = value = value+extent = max

      But should be:
      min <= value <= value+extent <= max

      The problem is in the <pre> block.
       <pre>
       minimum <= value <= value+extent <= maximum
       </pre>

      Browsers like Firefox generate this code properly, but java html renderer doesn't. To reproduce the issue, open javadoc in NetBeans for javax.swing.BoundedRangeModel. See also issue:

      http://www.netbeans.org/issues/show_bug.cgi?id=66216

      Unfortunately this changes the meaning of the javadoc.

            earmstrosunw Eric Armstrong (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: