[hornetq-commits] JBoss hornetq SVN: r9551 - in trunk: tests/src/org/hornetq/tests/integration/client and 1 other directory.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon Aug 16 10:31:38 EDT 2010


Author: ataylor
Date: 2010-08-16 10:31:38 -0400 (Mon, 16 Aug 2010)
New Revision: 9551

Modified:
   trunk/src/main/org/hornetq/core/postoffice/impl/AddressImpl.java
   trunk/tests/src/org/hornetq/tests/integration/client/TemporaryQueueTest.java
Log:
HORNETQ-477 - Queues bound to wildcard addresses canoot be deleted


Modified: trunk/src/main/org/hornetq/core/postoffice/impl/AddressImpl.java
===================================================================
--- trunk/src/main/org/hornetq/core/postoffice/impl/AddressImpl.java	2010-08-16 12:53:50 UTC (rev 9550)
+++ trunk/src/main/org/hornetq/core/postoffice/impl/AddressImpl.java	2010-08-16 14:31:38 UTC (rev 9551)
@@ -62,7 +62,10 @@
 
    public void addLinkedAddress(final Address address)
    {
-      linkedAddresses.add(address);
+      if(!linkedAddresses.contains(address))
+      {
+         linkedAddresses.add(address);
+      }
    }
 
    public void removeLinkedAddress(final Address actualAddress)

Modified: trunk/tests/src/org/hornetq/tests/integration/client/TemporaryQueueTest.java
===================================================================
--- trunk/tests/src/org/hornetq/tests/integration/client/TemporaryQueueTest.java	2010-08-16 12:53:50 UTC (rev 9550)
+++ trunk/tests/src/org/hornetq/tests/integration/client/TemporaryQueueTest.java	2010-08-16 14:31:38 UTC (rev 9551)
@@ -181,7 +181,7 @@
    }
 
 
-   public void _testQueueWithWildcard() throws Exception
+   public void testQueueWithWildcard() throws Exception
    {
       session.createQueue("a.b", "queue1");
       session.createTemporaryQueue("a.#", "queue2");
@@ -221,7 +221,7 @@
    }
 
 
-   public void _testQueueWithWildcard2() throws Exception
+   public void testQueueWithWildcard2() throws Exception
    {
       session.createQueue("a.b", "queue1");
       session.createTemporaryQueue("a.#", "queue2");



More information about the hornetq-commits mailing list