Cannot use clojure.stracktrace/print-stack-trace with GraalVM

Description

Problem
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.

Proposed solution
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

Environment

None

Activity

Show:
Alex Miller
April 8, 2019, 1:14 PM

Go for it! Feel free to put the warn-on-reflect setting in the top of the code in the patch.

Michiel Borkent
April 8, 2019, 10:15 PM

Tested this with GraalVM and it now works.

Alex Miller
April 8, 2019, 11:08 PM

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?

Michiel Borkent
April 9, 2019, 8:17 AM

Done.

Alex Miller
March 3, 2020, 7:20 PM

Applied for 1.10.2

Completed

Assignee

Alex Miller

Reporter

Michiel Borkent

Labels

None

Approval

Ok

Patch

Code

Fix versions

Priority

Major
Configure