fix more Java1.5 incompatibility

Change-Id: I9d750f525fe73d59c150b322401418dfbd0822dd
This commit is contained in:
Noel Grandin
2014-09-29 12:01:11 +02:00
parent 255e30026b
commit 77650bcc64

View File

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