JDK-6183723 : Constant field values page is not displayed correctly if values are XML tags.
  • Type: Bug
  • Component: tools
  • Sub-Component: javadoc(tool)
  • Affected Version: 1.4.2
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2004-10-25
  • Updated: 2014-05-05
  • Resolved: 2004-10-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.2Resolved
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows 2000 5.00.2195 Service Pack 4

A DESCRIPTION OF THE PROBLEM :
Constant field values page is non displayed correctly if constant values are XML tags ("<!--" or "-->" and so on) because they collide with HTML tags generated by javadoc tools for aforesaid page.


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Create a class with costants with xml values such as "<!--" or "-->" or "</HTML>", generate the javadoc for this class, load the constant-values.html file into a browser.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
I would prefer to see the constants value page correctly displayed into browser.
ACTUAL -
The constant-values.html page is not correctly displayed into browser.

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
package test;
public class testCase
{
    public static final String OPEN_CDATA = "<![CDATA[";
    public static final String CLOSE_CDATA = "]]>";
    public static final String XML_START_COMMENT_TAG = "<!--";
    public static final String XML_END_COMMENT_TAG = "-->";
    public static final String START_HTML_TAG = "<HTML>";
    public static final String END_HTML_TAG = "</HTML>";
}

---------- END SOURCE ----------
###@###.### 10/25/04 08:29 GMT

Comments
EVALUATION Duplicate of 5077317: Produces faulty Constant Values page if constants contain angle bracket '<' ###@###.### 10/26/04 21:28 GMT
26-10-2004