8043807: Incorrect StackTrace in IOException thrown from ClipboardTransferable

Reviewed-by: anthony, serb
This commit is contained in:
Petr Pchelko 2014-06-02 15:25:43 +04:00
parent b57d6c9a4f
commit ffed33a491

View File

@ -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;