diff --git a/src/java/org/apache/cassandra/auth/AuthConfig.java b/src/java/org/apache/cassandra/auth/AuthConfig.java index 1363b24a6f..67d4490790 100644 --- a/src/java/org/apache/cassandra/auth/AuthConfig.java +++ b/src/java/org/apache/cassandra/auth/AuthConfig.java @@ -135,6 +135,15 @@ public final class AuthConfig return ParameterizedClass.newInstance(authCls, List.of("", authPackage)); } - return ParameterizedClass.newInstance(new ParameterizedClass(defaultCls.getName()), List.of()); + // for now, this has to stay and can not be replaced by ParameterizedClass.newInstance as above + // due to that failing for simulator dtests. See CASSANDRA-20450 for more information. + try + { + return defaultCls.newInstance(); + } + catch (InstantiationException | IllegalAccessException e) + { + throw new ConfigurationException("Failed to instantiate " + defaultCls.getName(), e); + } } }