[OpenJDK 2D-Dev] <AWT Dev> [12] RFR JDK-8176556: java/awt/dnd/ImageTransferTest/ImageTransferTest.java fails for JFIF

Jayathirth D V jayathirth.d.v at oracle.com
Wed Nov 7 10:11:33 UTC 2018

Hello All,


Please review the following fix in JDK12 :


Bug : https://bugs.openjdk.java.net/browse/JDK-8176556 

Webrev : http://cr.openjdk.java.net/~jdv/8176556/webrev.00/ 


Issue : When we run java/awt/dnd/ImageTransferTest/ImageTransferTest.java if fails to get ImageWriter(Service provider) capable of encoding JFIF format.


Root cause: Support for alpha channel in JPEG is removed in HYPERLINK "https://bugs.openjdk.java.net/browse/JDK-8204187"JDK-8204187 and this causes DataTransferer to throw exception saying unable to get Service provided for ARGB channel in for Jpeg.


Solution : Use RGB image without Alpha channel. This regression test was written to verify image data before and after DnD, so removing alpha channel will not affect its purpose.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20181107/4b9dcbc9/attachment.html>

More information about the 2d-dev mailing list