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

Constant field values page is not displayed correctly if values are XML tags.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3
    • 1.4.2
    • 1.4.2
    • tools

    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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jssunw Jitender S (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: