Author: kwall
Date: Fri Dec 23 08:58:30 2016
New Revision: 1775803

URL: http://svn.apache.org/viewvc?rev=1775803&view=rev
Log:
QPID-6028 : Prevent ClassCastException causing test failures on persistent 
profiles

Modified:
    
qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/exchange/AbstractExchange.java

Modified: 
qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/exchange/AbstractExchange.java
URL: 
http://svn.apache.org/viewvc/qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/exchange/AbstractExchange.java?rev=1775803&r1=1775802&r2=1775803&view=diff
==============================================================================
--- 
qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/exchange/AbstractExchange.java
 (original)
+++ 
qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/exchange/AbstractExchange.java
 Fri Dec 23 08:58:30 2016
@@ -159,9 +159,9 @@ public abstract class AbstractExchange<T
     protected void onOpen()
     {
         super.onOpen();
-        final ConfiguredDerivedMethodAttribute<Exchange<?>, List<Binding>> 
durableBindingsAttribute =
-                (ConfiguredDerivedMethodAttribute<Exchange<?>, List<Binding>>) 
getModel().getTypeRegistry().getAttributeTypes(getTypeClass()).get(DURABLE_BINDINGS);
-        final List<Binding> bindings =
+        final ConfiguredDerivedMethodAttribute<Exchange<?>, 
Collection<Binding>> durableBindingsAttribute =
+                (ConfiguredDerivedMethodAttribute<Exchange<?>, 
Collection<Binding>>) 
getModel().getTypeRegistry().getAttributeTypes(getTypeClass()).get(DURABLE_BINDINGS);
+        final Collection<Binding> bindings =
                 
durableBindingsAttribute.convertValue(getActualAttributes().get(DURABLE_BINDINGS),
 this);
         if (bindings != null)
         {



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to