MobiVM / robovm

Ahead of time compiler for JVM bytecode targetting iOS, Mac OSX and Linux
https://mobivm.github.io
952 stars 132 forks source link

Class InvocationTargetException add throwable cause #741

Closed Tom-Ski closed 1 year ago

Tom-Ski commented 1 year ago

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.