<AWT Dev> [9] Review request for 8173853: IllegalArgumentException in java.awt.image.ReplicateScaleFilter
dmitry markov
dmitry.markov at oracle.com
Thu Mar 2 18:02:25 UTC 2017
Hello,
Could you review a fix for jdk9, please?
bug: https://bugs.openjdk.java.net/browse/JDK-8173853
webrev: http://cr.openjdk.java.net/~dmarkov/8173853/webrev.00/
Problem description:
Sometimes XQueryBestCursor may return zero-dimension to the code inside XCustomCursor.getBestCursorSize(). As a result the subsequent invocation of CustomCursor constructor will fail with IllegalArgumentException during scaling of the image.
Fix:
It is necessary to avoid scaling if getBestCursorSize() returns zero-dimension.
Thanks,
Dmitry
More information about the awt-dev
mailing list