Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6183723
Votes 0
Synopsis Constant field values page is not displayed correctly if values are XML tags.
Category doclet:tbd
Reported Against
Release Fixed
State 11-Closed, duplicate of 5077317, bug
Priority: 3-Medium
Related Bugs
Submit Date 25-OCT-2004
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 :
 customer  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 ----------
  xxxxx@xxxxx   10/25/04 08:29 GMT
Work Around
N/A
Evaluation
Duplicate of  
5077317: Produces faulty Constant Values page if constants contain angle bracket '<'
  xxxxx@xxxxx   10/26/04 21:28 GMT
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang