On Fri, 2 Apr 2021 23:06:43 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:
>> - The hand-crafted methods for addition and multiplication are replaced by >> the "Math" versions. >> - Cleanup: the usage of do/while(false) is removed > > The nice PR number: 3333! I don't understand the exception handling here. multiplyExact and addExact will throw a runtime exception - ArithmeticException. And I don't see where it is caught. The change for ImageLayoutException to extend ArithmeticException doesn't seem like it can help here. Where is the ArithmeticException being turned into ImageLayoutException ? ------------- PR: https://git.openjdk.java.net/jdk/pull/3333