Fork me on GitHub
#graalvm
<
2022-06-26
>
Yosevu Kilonzo21:06:21

I get this exception when I try to run an executable.

Exception in thread "main" java.lang.IllegalArgumentException: No matching field found: reset for class java.io.StringReader
I'm looking at the https://github.com/clj-easy/graal-docs#reflection, which says to put (set! *warn-on-reflection* true) at the top of my namespaces, but is there anything I can do if the reflection happens in an external dependency rather than within my code?

borkdude21:06:11

@yosevuk Yes, when this happens in an external dependency you have the following options: • Make a PR to that dependency and use a fork until the PR was merged or: • Use a reflect-config.json where you put that class

Yosevu Kilonzo22:06:26

Got it borkdude! I'll try one of those options.