[OpenJDK 2D-Dev] Review Request for JDK-6386906 : Faulty rounding code in BMPImageReader.decodeRLE4()
Jayathirth D V
jayathirth.d.v at oracle.com
Mon Jun 13 14:00:41 UTC 2016
Hi,
Please review the following fix in JDK9:
Bug : https://bugs.openjdk.java.net/browse/JDK-6386906
Webrev : http://cr.openjdk.java.net/~jdv/6386906/webrev.00/
Issue : We are dividing an integer with another integer and trying to perform ceil() on resultant value which will be an integer. Resultant value will not have fractional part and ceil() operation is invalid.
Solution : Update the code to divide the integer with floating point variable so that ceil() operation becomes valid.
Thanks,
Jay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20160613/1cd80946/attachment.html>
More information about the 2d-dev
mailing list