JDK-6362041 : Incorrect ordering of spaces in javadoc
  • Type: Bug
  • Component: tools
  • Sub-Component: javadoc(tool)
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2005-12-12
  • Updated: 2014-05-05
  • Resolved: 2006-06-07
Related Reports
Duplicate :  
Description
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.