8043807: Incorrect StackTrace in IOException thrown from ClipboardTransferable
authorpchelko
Mon, 02 Jun 2014 15:25:43 +0400
changeset 25121 dbbe6470fd1a
parent 25120 8b6a41c3752f
child 25122 1ecc464c69d2
8043807: Incorrect StackTrace in IOException thrown from ClipboardTransferable Reviewed-by: anthony, serb
jdk/src/share/classes/sun/awt/datatransfer/ClipboardTransferable.java
--- 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;