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

Attachments

2

Activity

Show:

Alex Miller March 3, 2020 at 7:20 PM

Applied for 1.10.2

Michiel Borkent April 9, 2019 at 8:17 AM

Done.

Alex Miller April 8, 2019 at 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 8, 2019 at 10:15 PM

Tested this with GraalVM and it now works.

Alex Miller April 8, 2019 at 1:14 PM

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

Completed

Details

Assignee

Reporter

Approval

Ok

Patch

Code

Priority

Fix versions

Created April 8, 2019 at 9:32 AM
Updated March 3, 2020 at 7:20 PM
Resolved March 3, 2020 at 7:20 PM