scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java |    8 
++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

New commits:
commit 77650bcc642c55fff811d641b0664b4a42e3f43c
Author: Noel Grandin <n...@peralex.com>
Date:   Mon Sep 29 12:01:11 2014 +0200

    fix more Java1.5 incompatibility
    
    Change-Id: I9d750f525fe73d59c150b322401418dfbd0822dd

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 d630e3f..33bb674 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;
         }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to