[OpenJDK 2D-Dev] <OpenJDK 2D-Dev> Review request for JDK-8144744 : ImageWriter.replacePixels() specification is incorrect regarding null ImageWriteParam
Jayathirth D V
jayathirth.d.v at oracle.com
Wed Jan 13 10:08:40 UTC 2016
Hi,
Please review a simple fix in JDK9:
Bug : https://bugs.openjdk.java.net/browse/JDK-8144744
Webrev : http://cr.openjdk.java.net/~jdv/8144744/webrev.00/
Issue : Specification of ImageWriter.replacePixels() mentions that Illegal argument exception will be thrown if argument param is null.
Root cause : Implementation of repalcePixels() API is in TIFFImageWriter and we actually use default ImageWriteParam if incoming argument param is null and don't throw IllegalArgumentException.
Solution : Remove the comment in 'Throws' clause of specification which mentions that IllegalArgumentException will be thrown if param is null.
Thanks,
Jay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20160113/7231da30/attachment.html>
More information about the 2d-dev
mailing list