8043807: Incorrect StackTrace in IOException thrown from ClipboardTransferable
Reviewed-by: anthony, serb
--- a/jdk/src/share/classes/sun/awt/datatransfer/ClipboardTransferable.java Mon Jun 02 14:20:02 2014 +0400
+++ b/jdk/src/share/classes/sun/awt/datatransfer/ClipboardTransferable.java Mon Jun 02 15:25:43 2014 +0400
@@ -153,7 +153,7 @@
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;