[OpenJDK 2D-Dev] RFR: 8264666: Reuse Math.multiplyExact/addExact in the LCMSImageLayout class
Sergey Bylokhov
serb at openjdk.java.net
Wed Apr 7 23:27:18 UTC 2021
On Wed, 7 Apr 2021 20:14:06 GMT, Phil Race <prr at openjdk.org> wrote:
> 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 ?
O_o for some reason... missed that.
-------------
PR: https://git.openjdk.java.net/jdk/pull/3333
More information about the 2d-dev
mailing list