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

DecimalFormat javadoc contains HTML tags in example code

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8, 11, 14
    • Fix Version/s: 16
    • Component/s: core-libs
    • Subcomponent:
    • Resolved In Build:
      b14
    • OS:
      generic
    • Verification:
      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

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

              Dates

              Created:
              Updated:
              Resolved: