xmerge/source/xmerge/java/org/openoffice/xmerge/converter/dom/DOMDocument.java 
   |    4 +++-
 
xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/OfficeDocument.java
 |    8 ++++++--
 2 files changed, 9 insertions(+), 3 deletions(-)

New commits:
commit 40861378a22503b58c7c6dd1f691fc824697c1db
Author: Noel Grandin <n...@peralex.com>
Date:   Mon Sep 29 12:07:23 2014 +0200

    fix more Java1.5 incompatibility
    
    Change-Id: I32881e06d278df6319822a5ecf282aa97cf24bc8

diff --git 
a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/dom/DOMDocument.java
 
b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/dom/DOMDocument.java
index cbade8a..f722732 100644
--- 
a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/dom/DOMDocument.java
+++ 
b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/dom/DOMDocument.java
@@ -298,7 +298,9 @@ public class DOMDocument
         catch (Exception e) {
             // We may get some other errors, but the bottom line is that
             // the steps being executed no longer work
-            throw new IOException(e);
+            IOException newEx = new IOException(e.getMessage());
+            newEx.initCause(e);
+            throw newEx;
         }
 
         byte bytes[] = baos.toByteArray();
diff --git 
a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/OfficeDocument.java
 
b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/OfficeDocument.java
index d468b42..706b58d 100644
--- 
a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/OfficeDocument.java
+++ 
b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/OfficeDocument.java
@@ -813,14 +813,18 @@ public abstract class OfficeDocument
                     return writer.toString().getBytes();
                 } catch (Exception e) {
                     // We don't have another parser
-                    throw new IOException("No appropriate API (JAXP/Xerces) to 
serialize XML document: " + domImpl, e);
+                    IOException newEx = new IOException("No appropriate API 
(JAXP/Xerces) to serialize XML document: " + domImpl);
+                    newEx.initCause(e);
+                    throw newEx;
                 }
             }
         }
         catch (Exception e) {
             // We may get some other errors, but the bottom line is that
             // the steps being executed no longer work
-            throw new IOException(e);
+            IOException newEx = new IOException(e.getMessage());
+            newEx.initCause(e);
+            throw newEx;
         }
 
         byte bytes[] = baos.toByteArray();
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to