incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r830860 - /sling/trunk/bundles/jcr/contentloader/src/main/java/org/apache/sling/jcr/contentloader/internal/readers/XmlReader.java
Date Thu, 29 Oct 2009 08:43:06 GMT
Author: bdelacretaz
Date: Thu Oct 29 08:43:05 2009
New Revision: 830860

URL: http://svn.apache.org/viewvc?rev=830860&view=rev
Log:
SLING-1161 - fix code to compile with JDK 1.5

Modified:
    sling/trunk/bundles/jcr/contentloader/src/main/java/org/apache/sling/jcr/contentloader/internal/readers/XmlReader.java

Modified: sling/trunk/bundles/jcr/contentloader/src/main/java/org/apache/sling/jcr/contentloader/internal/readers/XmlReader.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/contentloader/src/main/java/org/apache/sling/jcr/contentloader/internal/readers/XmlReader.java?rev=830860&r1=830859&r2=830860&view=diff
==============================================================================
--- sling/trunk/bundles/jcr/contentloader/src/main/java/org/apache/sling/jcr/contentloader/internal/readers/XmlReader.java
(original)
+++ sling/trunk/bundles/jcr/contentloader/src/main/java/org/apache/sling/jcr/contentloader/internal/readers/XmlReader.java
Thu Oct 29 08:43:05 2009
@@ -233,7 +233,9 @@
                         FileDescription.SHARED.setValues(attributes);
                         attributes.clear();
                     } catch (ParseException e) {
-                        throw new IOException("Error parsing file description", e);
+                        IOException ioe = new IOException("Error parsing file description");
+                        ioe.initCause(e);
+                        throw ioe;
                     }
                     FileDescription.SHARED.create(creator);
                     FileDescription.SHARED.clear();



Mime
View raw message