Commons Math
  1. Commons Math
  2. MATH-1050

Deprecate "pow(int, long)" and "pow(long,long)" in "ArithmeticUtils"

    Details

    • Type: Task Task
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 4.0
    • Labels:

      Description

      Those two methods uses a "long" for the exponent, but overflow will occur when the exponent is larger than 31 (except for the trivial case where the base is 1).

      See also this thread on the dev ML.

        Activity

        Hide
        Gilles added a comment -

        Deprecation introduced in revision 1537279.

        Methods to be removed before releasing the next major version.

        Show
        Gilles added a comment - Deprecation introduced in revision 1537279. Methods to be removed before releasing the next major version.
        Hide
        Thomas Neidhart added a comment -

        Added changelog entry in r1566074.

        Show
        Thomas Neidhart added a comment - Added changelog entry in r1566074.
        Hide
        Luc Maisonobe added a comment -

        This issue was fixed a long time ago.

        Show
        Luc Maisonobe added a comment - This issue was fixed a long time ago.
        Hide
        Gilles added a comment -

        Hi Luc.

        ^^^^
        I think that the issue should be kept open until the method is
        actually deleted.

        Regards,
        Gilles

        Show
        Gilles added a comment - Hi Luc. ^^^^ I think that the issue should be kept open until the method is actually deleted. Regards, Gilles
        Hide
        Luc Maisonobe added a comment -

        Reopening, waiting for the actual deletion of the methods.

        Show
        Luc Maisonobe added a comment - Reopening, waiting for the actual deletion of the methods.
        Hide
        Thomas Neidhart added a comment -

        Removed methods in commit 745d383af12137ccbcbe1f3cb4c9db73f87a66ca.

        Show
        Thomas Neidhart added a comment - Removed methods in commit 745d383af12137ccbcbe1f3cb4c9db73f87a66ca.

          People

          • Assignee:
            Gilles
            Reporter:
            Gilles
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development