I tried to use clojure.stracktrace/print-stack-trace with GraalVM but that doesn't work since reflection is needed to find the method getMessage.
This can be resolved by adding type hints.
An overview of warnings emitted by
Patch CLJ-2502-2.patch removes unwanted whitespace changes and moves the type hint of root-cause higher up.
Screened by: Alex Miller
Go for it! Feel free to put the warn-on-reflect setting in the top of the code in the patch.
Tested this with GraalVM and it now works.
There seem to be some extraneous indenting changes in there - if you could minimize those, that would be helpful. For root-cause, I'd prefer the type hint as high as possible (in the arg). Can you update those?
Applied for 1.10.2