Skip to content

Ensured *Builder instances are no longer created with reflection #989

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

lhazlewood
Copy link
Contributor

Ensured *Builder instances are no longer created with reflection using Classes.newInstance. Instead, Classes.newInstance is used to create static/thread-safe Supplier singletons when the api module is loaded, and those singletons will directly instantiate *Builder instances at runtime using the new keyword`.

Resolves #988.

…g `Classes.newInstance`. Instead, `Classes.newInstance` is used to create static/thread-safe Supplier singletons when the api module is loaded, and those singletons will directly instantiate *Builder instances at runtime using the `new` keyword`.

Resolves #988.
@lhazlewood
Copy link
Contributor Author

@slovdahl are you able to build using this PR and test in your application?

@lhazlewood lhazlewood self-assigned this Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Runtime Builder creation enhancements
1 participant