RFR: 8375237: Document existing exceptional behavior of divideUnsigned and remainderUnsigned
Joe Darcy
darcy at openjdk.org
Wed Jan 14 06:08:18 UTC 2026
On Wed, 14 Jan 2026 05:59:54 GMT, Joe Darcy <darcy at openjdk.org> wrote:
> Happened to notice the divideUnsigned and reminaderUnsigned methods don't document throwing ArithmeticException for a zero divisor so added I'm proposing to add the appropriate throws clauses.
> The CSR is ready to review too.
The regression tests already cover the exceptional behavior so this PR doesn't include any test updates:
https://github.com/openjdk/jdk/blob/b082a390b77fca7134000bfe631f73bfd082bfa1/test/jdk/java/lang/Integer/Unsigned.java#L364
https://github.com/openjdk/jdk/blob/b082a390b77fca7134000bfe631f73bfd082bfa1/test/jdk/java/lang/Long/Unsigned.java#L435
-------------
PR Comment: https://git.openjdk.org/jdk/pull/29215#issuecomment-3747922752
More information about the core-libs-dev
mailing list