RFR: 8306707: Support pluggable image loading via javax.imageio [v19]
Michael Strauß
mstrauss at openjdk.org
Wed Nov 13 18:39:30 UTC 2024
On Wed, 13 Nov 2024 12:15:20 GMT, John Hendrikx <jhendrikx at openjdk.org> wrote:
>> Michael Strauß has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 33 commits:
>>
>> - Merge branch 'master' into feature/ximageloader
>> - move automatically added imports
>> - rename test...javax -> test...java2d
>> - Merge branch 'master' into feature/ximageloader
>> - Merge branch 'master' into feature/ximageloader
>> - rename iio.javax -> iio.java2d
>> - revert doc change
>> - Merge branch 'master' into feature/ximageloader
>> - validate max image width/height
>> - catch NoClassDefFoundError
>>
>> Co-authored-by: Kevin Rushforth <kevin.rushforth at oracle.com>
>> - ... and 23 more: https://git.openjdk.org/jfx/compare/d0011b21...d8d2a9c1
>
> modules/javafx.graphics/src/main/java/com/sun/javafx/iio/common/ImageTools.java line 216:
>
>> 214: public static void validateMaxDimensions(double width, double height, double scaleFactor) {
>> 215: if (width * scaleFactor > Integer.MAX_VALUE) {
>> 216: throw new IllegalArgumentException("Image width exceeds maximum value");
>
> You may want to include the values used to reach this conclusion here and with the other 2 exceptions; if these exceptions ever come up, that's the first thing a developer will likely want to know (which may be you if this is posted in an issue).
Changed as suggested.
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1593#discussion_r1840981078
More information about the openjfx-dev
mailing list