diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/FederationStreamConnectMessage.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/FederationStreamConnectMessage.java index 14813b15b7..1b2a28d4f3 100644 --- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/FederationStreamConnectMessage.java +++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/FederationStreamConnectMessage.java @@ -148,7 +148,7 @@ public abstract class FederationStreamConnectMessage ) null).newInstance(); + return (FederationPolicy) Class.forName(clazz).getConstructor(null).newInstance(); } catch (Exception e) { throw new IllegalStateException("Error. Unable to instantiate FederationPolicy: " + e.getMessage(), e); }