[OpenJDK 2D-Dev] RFR: 8264666: Reuse Math.multiplyExact/addExact in the LCMSImageLayout class

Sergey Bylokhov serb at openjdk.java.net
Thu May 6 00:13:52 UTC 2021


On Wed, 7 Apr 2021 23:23:28 GMT, Sergey Bylokhov <serb 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 ?
>
>> 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.

> @mrserb This pull request has been inactive for more than 8 weeks and will be automatically closed if another 8 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

not now

-------------

PR: https://git.openjdk.java.net/jdk/pull/3333


More information about the 2d-dev mailing list