[
https://issues.apache.org/jira/browse/CASSANDRA-21525?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stefan Miklosovic updated CASSANDRA-21525:
------------------------------------------
Status: Ready to Commit (was: Changes Suggested)
> Class Loading Improvements
> --------------------------
>
> Key: CASSANDRA-21525
> URL: https://issues.apache.org/jira/browse/CASSANDRA-21525
> Project: Apache Cassandra
> Issue Type: Bug
> Components: Local/Config
> Reporter: Jeremiah Jordan
> Assignee: Jeremiah Jordan
> Priority: Normal
> Fix For: 4.0.x, 4.1.x, 5.0.x, 6.0.x
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> 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]