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

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Delivered
    • Priority: P4
    • 20
    • Affects Version/s: 20
    • Component/s: core-libs
    • Fix Understood
    • generic
    • generic

      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.

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

              Created:
              Updated:
              Resolved: