Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-1050

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

    Details

    • Type: Task
    • Status: Resolved
    • Priority: 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
        tn Thomas Neidhart added a comment -

        Removed methods in commit 745d383af12137ccbcbe1f3cb4c9db73f87a66ca.

        Show
        tn Thomas Neidhart added a comment - Removed methods in commit 745d383af12137ccbcbe1f3cb4c9db73f87a66ca.
        Hide
        luc Luc Maisonobe added a comment -

        Reopening, waiting for the actual deletion of the methods.

        Show
        luc Luc Maisonobe added a comment - Reopening, waiting for the actual deletion of the methods.
        Hide
        erans Gilles added a comment -

        Hi Luc.

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

        Regards,
        Gilles

        Show
        erans 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 Luc Maisonobe added a comment -

        This issue was fixed a long time ago.

        Show
        luc Luc Maisonobe added a comment - This issue was fixed a long time ago.
        Hide
        tn Thomas Neidhart added a comment -

        Added changelog entry in r1566074.

        Show
        tn Thomas Neidhart added a comment - Added changelog entry in r1566074.
        Hide
        erans Gilles added a comment -

        Deprecation introduced in revision 1537279.

        Methods to be removed before releasing the next major version.

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

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development