<AWT Dev> RFR [16] 8246248: TransferHandler.exportToClipboard prints stacktrace even if succeeded

Suman Rajkumaar Kodandarama suman.rajkumaar.kodandarama at oracle.com
Tue Jul 7 14:35:32 UTC 2020


Hello All,

Could you review a fix for the JDK 16, please?

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

webrev: http://cr.openjdk.java.net/~dmarkov/suman/8246248/webrev.00/

Problem description:When copying an image with alpha component to the 
clipboard, IOException occurs and its stack trace is printed to the 
console. The IOException is thrown because JPEG flavor does not support 
alpha, which it has been dropped in JDK-8204187.

Fix: Instead of printing the exception on the standard console, the fix 
replaces printing the stack trace of any exception that may occur while 
placing data to the clipboard with logging.

Best Regards,
K Suman Rajkumaar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/awt-dev/attachments/20200707/faabb764/attachment-0001.htm>


More information about the awt-dev mailing list