summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-09-29 12:01:11 +0200
committerNoel Grandin <noel@peralex.com>2014-09-29 12:01:11 +0200
commit77650bcc642c55fff811d641b0664b4a42e3f43c (patch)
tree91bfe311bf7d77c948a87fe894c047ce46780857
parent255e30026b668f0effed62fbed36f0463539f93c (diff)
fix more Java1.5 incompatibility
Change-Id: I9d750f525fe73d59c150b322401418dfbd0822dd
-rw-r--r--scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java b/scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java
index d630e3f530c8..33bb67419eea 100644
--- a/scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java
+++ b/scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java
@@ -126,12 +126,16 @@ public class UCBStreamHandler extends URLStreamHandler {
catch ( com.sun.star.ucb.CommandAbortedException cae )
{
LogUtils.DEBUG("caught exception: " + cae.toString() + " getting writable stream from " + url );
- throw new IOException(cae);
+ IOException newEx = new IOException(cae.getMessage());
+ newEx.initCause(cae);
+ throw newEx;
}
catch ( com.sun.star.uno.Exception e )
{
LogUtils.DEBUG("caught unknown exception: " + e.toString() + " getting writable stream from " + url );
- throw new IOException(e);
+ IOException newEx = new IOException(e.getMessage());
+ newEx.initCause(e);
+ throw newEx;
}
return os;
}