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

Class InvocationTargetException add throwable cause #741

Merged
merged 1 commit into from
Aug 31, 2023

Conversation

Tom-Ski
Copy link
Member

@Tom-Ski Tom-Ski commented Aug 30, 2023

Add cause to exception.

Cases where InstantiationException is created with no detail message, we don't see true error.
We also do not cause full cause in stacktrace.

Example case of NoClassDefFoundError being thrown during reflection based init of a Class, results in just a basic message of InstantiationException, not showing correct line number of issue or message of true cause.

@Tom-Ski Tom-Ski merged commit 37271ad into master Aug 31, 2023
1 check passed
@Tom-Ski Tom-Ski deleted the reflection-classinit-throwable branch August 31, 2023 10:17
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