activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andytay...@apache.org
Subject [4/5] activemq-6 git commit: back-porting fix on exception message from hornetq code
Date Thu, 12 Feb 2015 15:14:50 GMT
back-porting fix on exception message from hornetq code

This is such a small change that qualifies as a tweak, so I'm not bothering on creating a
JIRA for this


Project: http://git-wip-us.apache.org/repos/asf/activemq-6/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-6/commit/bace9213
Tree: http://git-wip-us.apache.org/repos/asf/activemq-6/tree/bace9213
Diff: http://git-wip-us.apache.org/repos/asf/activemq-6/diff/bace9213

Branch: refs/heads/master
Commit: bace921389150c1654f26977282df82259cc4339
Parents: 60179cf
Author: Clebert Suconic <clebertsuconic@apache.org>
Authored: Wed Feb 11 21:04:18 2015 -0500
Committer: Clebert Suconic <clebertsuconic@apache.org>
Committed: Wed Feb 11 21:04:21 2015 -0500

----------------------------------------------------------------------
 .../java/org/apache/activemq/jms/client/ActiveMQSession.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-6/blob/bace9213/activemq-jms-client/src/main/java/org/apache/activemq/jms/client/ActiveMQSession.java
----------------------------------------------------------------------
diff --git a/activemq-jms-client/src/main/java/org/apache/activemq/jms/client/ActiveMQSession.java
b/activemq-jms-client/src/main/java/org/apache/activemq/jms/client/ActiveMQSession.java
index 7725ba8..a170b9e 100644
--- a/activemq-jms-client/src/main/java/org/apache/activemq/jms/client/ActiveMQSession.java
+++ b/activemq-jms-client/src/main/java/org/apache/activemq/jms/client/ActiveMQSession.java
@@ -767,7 +767,7 @@ public class ActiveMQSession implements QueueSession, TopicSession
             if (subscriptionName == null)
             {
                if (durability != ConsumerDurability.NON_DURABLE)
-                  throw new RuntimeException();
+                  throw new RuntimeException("Subscription name cannot be null for durable
topic consumer");
                // Non durable sub
 
                queueName = new SimpleString(UUID.randomUUID().toString());
@@ -782,7 +782,7 @@ public class ActiveMQSession implements QueueSession, TopicSession
             {
                // Durable sub
                if (durability != ConsumerDurability.DURABLE)
-                  throw new RuntimeException();
+                  throw new RuntimeException("Subscription name must be null for non-durable
topic consumer");
                if (connection.getClientID() == null)
                {
                   throw new IllegalStateException("Cannot create durable subscription - client
ID has not been set");


Mime
View raw message