-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
BUG REPORT
- Please describe the issue you observed:
- What did you do (The steps to reproduce)?
The java.lang.Class#newInstance
is deprecated since 9
This method propagates any exception thrown by the nullary constructor, including a checked exception.
It can be replaced to java.lang.reflect.Constructor#newInstance
It avoids this problem by wrapping any exception thrown by the constructor in a checkedException
-
What is expected to see?
-
What did you see instead?
-
Please tell us about your environment:
-
Other information (e.g. detailed explanation, logs, related issues, suggestions on how to fix, etc):
FEATURE REQUEST
-
Please describe the feature you are requesting.
-
Provide any additional detail on your proposed use case for this feature.
-
Indicate the importance of this issue to you (blocker, must-have, should-have, nice-to-have). Are you currently using any workarounds to address this issue?
-
If there are some sub-tasks involved, use -[] for each sub-task and create a corresponding issue to map to the sub-task:
- sub-task1-issue-number: sub-task1 description here,
- sub-task2-issue-number: sub-task2 description here,
- ...