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

writing error in 1.5 API specification

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 5.0
    • core-libs
    • x86
    • windows_vista

      A DESCRIPTION OF THE PROBLEM :
      SDK 1.5 API
      class: java.math.BigDecimal
      method: toPlainString()

      In particular, if this BigDecimal has a positive scale, the string resulting from this method will have a scale of zero when processed by the string constructor.

      ERROR: positive
      improvement: negative

      In particular, if this BigDecimal has a negative scale, the string resulting from this method will have a scale of zero when processed by the string constructor.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      In particular, if this BigDecimal has a negative scale, the string resulting from this method will have a scale of zero when processed by the string constructor.

      java.math.BigDecimal.toPlainString()
      ACTUAL -
      In particular, if this BigDecimal has a positive scale, the string resulting from this method will have a scale of zero when processed by the string constructor.

      java.math.BigDecimal.toPlainString()

      URL OF FAULTY DOCUMENTATION :
      http://java.sun.com/j2se/1.5.0/docs/api/java/math/BigDecimal.html#toPlainString()

            darcy Joe Darcy
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: