mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-02-28 22:39:27 +00:00
This closes #2969
This commit is contained in:
commit
a2ed46358f
@ -148,7 +148,7 @@ public abstract class FederationStreamConnectMessage <T extends FederationStream
|
||||
|
||||
private FederationPolicy getFederationPolicy(String clazz) {
|
||||
try {
|
||||
return (FederationPolicy) Class.forName(clazz).getConstructor(null).newInstance();
|
||||
return (FederationPolicy) Class.forName(clazz).getConstructor((Class<?>[]) null).newInstance();
|
||||
} catch (Exception e) {
|
||||
throw new IllegalStateException("Error. Unable to instantiate FederationPolicy: " + e.getMessage(), e);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user