Skip to content
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

refactor: remove usage of class.newInstance() deprecated method #5107

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yeikel
Copy link
Contributor

@yeikel yeikel commented Feb 7, 2024

 * @deprecated This method propagates any exception thrown by the
     * nullary constructor, including a checked exception.  Use of
     * this method effectively bypasses the compile-time exception
     * checking that would otherwise be performed by the compiler.
     * The {@link
     * java.lang.reflect.Constructor#newInstance(java.lang.Object...)
     * Constructor.newInstance} method avoids this problem by wrapping
     * any exception thrown by the constructor in a (checked) {@link
     * java.lang.reflect.InvocationTargetException}.

@yeikel yeikel changed the title refactor: remove usage refactor: remove usage of class::newInstance Feb 7, 2024
@yeikel yeikel changed the title refactor: remove usage of class::newInstance refactor: remove usage of class.newInstance() deprecated method Feb 7, 2024
@yeikel yeikel marked this pull request as ready for review February 7, 2024 02:54
@yeikel yeikel force-pushed the refactor/remove-usage branch 3 times, most recently from 232f83a to c8224fa Compare February 7, 2024 02:57
@tsegismont
Copy link
Contributor

Failure looks related

@yeikel yeikel marked this pull request as draft May 24, 2024 15:14
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.

2 participants