jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cko...@apache.org
Subject svn commit: r1189620 - /jackrabbit/trunk/jackrabbit-jca/src/main/java/org/apache/jackrabbit/jca/JCAManagedConnection.java
Date Thu, 27 Oct 2011 06:11:30 GMT
Author: ckoell
Date: Thu Oct 27 06:11:29 2011
New Revision: 1189620

URL: http://svn.apache.org/viewvc?rev=1189620&view=rev
Log:
JCR-2798 JCAManagedConnectionFactory should chain cause exception

Modified:
    jackrabbit/trunk/jackrabbit-jca/src/main/java/org/apache/jackrabbit/jca/JCAManagedConnection.java

Modified: jackrabbit/trunk/jackrabbit-jca/src/main/java/org/apache/jackrabbit/jca/JCAManagedConnection.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jca/src/main/java/org/apache/jackrabbit/jca/JCAManagedConnection.java?rev=1189620&r1=1189619&r2=1189620&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jca/src/main/java/org/apache/jackrabbit/jca/JCAManagedConnection.java
(original)
+++ jackrabbit/trunk/jackrabbit-jca/src/main/java/org/apache/jackrabbit/jca/JCAManagedConnection.java
Thu Oct 27 06:11:29 2011
@@ -95,7 +95,6 @@ public final class JCAManagedConnection
     /**
      * Create a new session.
      */
-    @SuppressWarnings("deprecation")
     private Session openSession() throws ResourceException {
         try {
             Session session = mcf.getRepository().login(
@@ -106,7 +105,7 @@ public final class JCAManagedConnection
             log("Failed to create session", e);
             ResourceException exception = new ResourceException(
                     "Failed to create session: " + e.getMessage());
-            exception.setLinkedException(e);
+            exception.initCause(e);
             throw exception;
         }
     }
@@ -240,7 +239,6 @@ public final class JCAManagedConnection
         }
     }
 
-    @SuppressWarnings("deprecation")
     private String getDescriptor(String key) throws ResourceException {
         try {
             return mcf.getRepository().getDescriptor(key);
@@ -248,7 +246,7 @@ public final class JCAManagedConnection
             log("Failed to access the repository", e);
             ResourceException exception = new ResourceException(
                     "Failed to access the repository: " + e.getMessage());
-            exception.setLinkedException(e);
+            exception.initCause(e);
             throw exception;
         }
     }



Mime
View raw message