Skip to content

WIP: avoid initializing classes via forName#3353

Draft
pjfanning wants to merge 1 commit into
apache:mainfrom
pjfanning:no-resolve
Draft

WIP: avoid initializing classes via forName#3353
pjfanning wants to merge 1 commit into
apache:mainfrom
pjfanning:no-resolve

Conversation

@pjfanning

Copy link
Copy Markdown
Member

Probably doesn't help much but generally, it is a bad idea to take a class name and load it with its static initializers.
this.getClass.getClassLoader is the default classloader used by Class.forName.

@pjfanning
pjfanning marked this pull request as draft July 15, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant