openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p..@apache.org
Subject svn commit: r571042 - /openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/CacheMarshallerImpl.java
Date Thu, 30 Aug 2007 05:09:57 GMT
Author: pcl
Date: Wed Aug 29 22:09:56 2007
New Revision: 571042

URL: http://svn.apache.org/viewvc?rev=571042&view=rev
Log:
OPENJPA-344. Build is failing because of this change; changing to use initCause() on the hypothesis
that the 1.4 phase of the build does not support a Throwable argument to the constructor.

Modified:
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/CacheMarshallerImpl.java

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/CacheMarshallerImpl.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/CacheMarshallerImpl.java?rev=571042&r1=571041&r2=571042&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/CacheMarshallerImpl.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/CacheMarshallerImpl.java
Wed Aug 29 22:09:56 2007
@@ -228,10 +228,11 @@
                             getId(), _inputResourceLocation).getMessage());
             }
         } catch (IOException ioe) {
-            throw new IllegalStateException(
+            IllegalStateException ise = new IllegalStateException(
                 _loc.get("cache-marshaller-bad-url", getId(),
-                    _inputResourceLocation)
-                    .getMessage(), ioe);
+                    _inputResourceLocation).getMessage());
+            ise.initCause(ioe);
+            throw ise;
         }
     }
 }



Mime
View raw message