Merge branch 'cassandra-5.0' into trunk

This commit is contained in:
Stefan Miklosovic 2025-03-18 19:26:42 +01:00
commit fb2aa5f386
No known key found for this signature in database
GPG Key ID: 32F35CB2F546D93E
1 changed files with 10 additions and 1 deletions

View File

@ -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);
}
}
}