RFR: 8229337: java.lang.Math class doc should be adjusted regarding -Exact methods

Brian Burkhalter brian.burkhalter at oracle.com
Tue Aug 13 14:43:28 UTC 2019

Hi Julia,

I think this looks OK but I would consider expanding the scope to add the three methods to StrictMath as well. Either that or file a separate issue for that purpose.



> On Aug 13, 2019, at 3:16 AM, Julia Boes <julia.boes at oracle.com> wrote:
> This is a minor fix of the javadoc in java.lang.Math. The methods decrementExact(), incrementExact() and negateExact()  declare they throw a ArithmeticException, and as such should be included in the list of operations that can detect overflow in the class-level javadoc.
> Bug: https://bugs.openjdk.java.net/browse/JDK-8229337 <https://bugs.openjdk.java.net/browse/JDK-8229337>
> Webrev: http://cr.openjdk.java.net/~dfuchs/jboes/8229337/webrev.00/ <http://cr.openjdk.java.net/~dfuchs/jboes/8229337/webrev.00/>

More information about the core-libs-dev mailing list