jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r610199 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/JNDIDatabaseJournal.java
Date Tue, 08 Jan 2008 22:22:42 GMT
Author: jukka
Date: Tue Jan  8 14:22:40 2008
New Revision: 610199

URL: http://svn.apache.org/viewvc?rev=610199&view=rev
Log:
JCR-1291: Missing class JNDIDatabaseJournal
    - No SQLException(String, Throwable) in Java 1.4

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/JNDIDatabaseJournal.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/JNDIDatabaseJournal.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/JNDIDatabaseJournal.java?rev=610199&r1=610198&r2=610199&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/JNDIDatabaseJournal.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/JNDIDatabaseJournal.java
Tue Jan  8 14:22:40 2008
@@ -75,8 +75,10 @@
             DataSource dataSource = (DataSource) ic.lookup(dataSourceLocation);
             return dataSource.getConnection();
         } catch (NamingException e) {
-            throw new SQLException(
-                    "DataSource not found: " + dataSourceLocation, e);
+            SQLException exception = new SQLException(
+                    "DataSource not found: " + dataSourceLocation);
+            exception.initCause(e);
+            throw exception;
         }
     }
 



Mime
View raw message