You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by gt...@apache.org on 2010/05/21 12:08:23 UTC

svn commit: r946964 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/async/AsyncDataManager.java

Author: gtully
Date: Fri May 21 10:08:22 2010
New Revision: 946964

URL: http://svn.apache.org/viewvc?rev=946964&view=rev
Log:
remove deps on 1.6 constructor, no point making 1.6 a requirement for this little feature

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/async/AsyncDataManager.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/async/AsyncDataManager.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/async/AsyncDataManager.java?rev=946964&r1=946963&r2=946964&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/async/AsyncDataManager.java (original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/async/AsyncDataManager.java Fri May 21 10:08:22 2010
@@ -196,7 +196,9 @@ public class AsyncDataManager {
         try {
             this.scheduler.start();
         } catch (Exception e) {
-            throw new IOException(e);
+            IOException ioe =  new IOException("scheduler start: " + e);
+            ioe.initCause(e);
+            throw ioe;
         }
         this.scheduler.executePeriodically(cleanupTask, DEFAULT_CLEANUP_INTERVAL);
     }
@@ -337,7 +339,9 @@ public class AsyncDataManager {
         try {
             this.scheduler.stop();
         } catch (Exception e) {
-            throw new IOException(e);
+            IOException ioe = new IOException("scheduler stop: " + e);
+            ioe.initCause(e);
+            throw ioe;
         }
         accessorPool.close();
         storeState(false);