Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8289260 BigDecimal movePointLeft() and movePointRight() do not follow their API spec
  3. JDK-8289934

Release Note: Restore Behavior of java.math.BigDecimal.movePointLeft() and movePointRight() on a Zero Argument

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Delivered
    • P4
    • 20
    • 20
    • core-libs
    • Fix Understood
    • generic
    • generic

    Description

      When these methods are invoked with a zero argument on a target with a negative _scale_, they return a result which is numerically the same as the target, but with a different _unscaled value_ and _scale_.

      In earlier releases, they returned a result with the same _unscaled value_ and _scale_, which was against the specification.

      The behavior is unchanged when the target has a non-negative _scale_ or when the argument is not zero.

      Attachments

        Issue Links

          Activity

            People

              rgiulietti Raffaello Giulietti
              rgiulietti Raffaello Giulietti
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: