[
https://issues.apache.org/jira/browse/LANG-1601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17183959#comment-17183959
]
Alex Herbert commented on LANG-1601:
------------------------------------
{quote}2. in commons-lang's version of Fraction.pow, they have a special
treatement to make sure Integer.MIN_VALUE can be used as exponent.
Is this valuable?
Should I port this feature to the version in commons-numbers?
{quote}
This is a bug. Other methods in Fraction (e.g. subtract) handle MIN_VALUE
correctly. Feel free to raise a Jira ticket in numbers for this. Any bug fix
should also be applied to \{{BigFraction.pow(int)}} which also negates an
integer.
I can implement a fix if you prefer to just report the issue.
> refine performance of Fraction.pow
> ----------------------------------
>
> Key: LANG-1601
> URL: https://issues.apache.org/jira/browse/LANG-1601
> Project: Commons Lang
> Issue Type: Improvement
> Components: lang.math.*
> Reporter: Jin Xu
> Priority: Minor
> Time Spent: 1h
> Remaining Estimate: 0h
>
> https://github.com/apache/commons-lang/pull/611
--
This message was sent by Atlassian Jira
(v8.3.4#803005)