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

DecimalFormat javadoc contains HTML tags in example code

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P4
    • Resolution: Fixed
    • 8, 11, 14
    • 16
    • core-libs
    • b14
    • generic
    • Verified

    Description

      A DESCRIPTION OF THE PROBLEM :
      The example code of java.lang.DecimalFormat contains the HTML tags `<strong>` and `</strong>` in the example code:
      > <strong>// Print out a number using the localized number, integer, currency,
      > // and percent format for each locale</strong>
      https://docs.oracle.com/en/java/javase/14/docs/api/java.base/java/text/DecimalFormat.html

      The reason for this is that at some point a {@code } was added to the example code block which therefore treats the HTML tags inside literally.


      Attachments

        Activity

          People

            naoto Naoto Sato
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: