Hi, Suman.

Is it possible to write a test case which triggers this exception and also 
check that
after the fix the clipboard copy operation still works with/without alpha 
component.


On 07.07.2020 07:49, Suman Rajkumaar Kodandarama wrote:
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


--
Best regards, Sergey.

Reply via email to