Jeremiah Jordan created CASSANDRA-21525:
-------------------------------------------
Summary: Class Loading Improvements
Key: CASSANDRA-21525
URL: https://issues.apache.org/jira/browse/CASSANDRA-21525
Project: Apache Cassandra
Issue Type: Bug
Reporter: Jeremiah Jordan
Cassandra resolves pluggable extensions by class name from configuration,
schema, and tooling
inputs (cassandra.yaml, CQL DDL, JMX, schema/TCM, system properties, CLI
tools). These names are
loaded with an initializing `Class.forName(name)` and only checked against the
expected extension
type afterward. That ordering initializes the named class — running its static
initializer and any
side effects — before confirming it is the right type, so a mistyped or invalid
class name is
initialized before it is rejected. The type should be verified before
initialization, so that only
validated extension classes are initialized.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]