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: 5264881
  • Loading branch information
RealLucy committed Jul 25, 2023
1 parent b49e8b2 commit e10b887
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
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

0 comments on commit e10b887

Please sign in to comment.