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

(spec) wrong label/link on java.util.Scanner API doc

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 5.0, 6
    • core-libs
    • b14
    • generic, x86
    • generic, windows_xp

      Name: jl125535 Date: 08/31/2004


      URL OF FAULTY DOCUMENTATION :
      http://java.sun.com/j2se/1.5.0/docs/api/java/util/Scanner.html

      A DESCRIPTION OF THE PROBLEM :
      In the "Localized numbers" section, the item about NaN string determination refers to DecimalFormatSymbols.getInfinity instead of .getNaN.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      "The string that represents not-a-number for floating-point values, i.e., dfs.getNaN()"
      (The getNaN() should link to java.text.DecimalFormatSymbols#getNaN)

      ACTUAL -
      "The string that represents not-a-number for floating-point values, i.e., dfs.getInfinity()"

      (Incident Review ID: 301475)
      ======================================================================
      ###@###.### 10/29/04 00:20 GMT

            sherman Xueming Shen
            jleesunw Jon Lee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: