Skip to content

Commit

Permalink
8286481: Exception printed to stdout on Windows when storing transpar…
Browse files Browse the repository at this point in the history
…ent image in clipboard

Backport-of: 5264881a1528444dfefbabec6f42596810f0ce07
  • Loading branch information
TheRealMDoerr committed Jun 20, 2023
1 parent 0368ae9 commit 9780137
Showing 1 changed file with 1 addition and 7 deletions.
Expand Up @@ -83,13 +83,7 @@ protected void setContentsNative(Transferable contents) {
translateTransferable(contents, flavor, format);
publishClipboardData(format, bytes);
} catch (IOException e) {
// Fix 4696186: don't print exception if data with
// javaJVMLocalObjectMimeType failed to serialize.
// May remove this if-check when 5078787 is fixed.
if (!(flavor.isMimeTypeEqual(DataFlavor.javaJVMLocalObjectMimeType) &&
e instanceof java.io.NotSerializableException)) {
e.printStackTrace();
}
// Cannot be translated in this format, skip
}
}
} finally {
Expand Down

1 comment on commit 9780137

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.