mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-13 03:45:19 +00:00
8043807: Incorrect StackTrace in IOException thrown from ClipboardTransferable
Reviewed-by: anthony, serb
This commit is contained in:
parent
b57d6c9a4f
commit
ffed33a491
@ -153,7 +153,7 @@ public class ClipboardTransferable implements Transferable {
|
||||
Object ret = flavorsToData.get(flavor);
|
||||
if (ret instanceof IOException) {
|
||||
// rethrow IOExceptions generated while fetching data
|
||||
throw (IOException)ret;
|
||||
throw new IOException("Exception fetching data: ", (IOException)ret);
|
||||
} else if (ret instanceof DataFactory) {
|
||||
// Now we can render the data
|
||||
DataFactory factory = (DataFactory)ret;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user