Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix reflection warning on multimethods.cljc #437

Merged
merged 3 commits into from
Nov 7, 2020

Conversation

galdolber
Copy link
Contributor

I'm getting this warning when compiling sci with native image:

Reflection warning, sci/impl/multimethods.cljc:12:6 - call to java.lang.IllegalArgumentException ctor can't be resolved.

Reflection warning, sci/impl/multimethods.cljc:12:6 - call to java.lang.IllegalArgumentException ctor can't be resolved.
@borkdude
Copy link
Collaborator

borkdude commented Nov 7, 2020

@galdolber Can you also add (set! *warn-on-reflection* true) at the top of the namespace? Then we can prevent it from happening again.

@galdolber
Copy link
Contributor Author

@borkdude done

@borkdude borkdude merged commit 5cb08d0 into babashka:master Nov 7, 2020
@borkdude
Copy link
Collaborator

borkdude commented Nov 7, 2020

Thanks! I think this may also warrant a CLJ JIRA ticket since this code comes from Clojure itself:

https://github.com/clojure/clojure/blob/f47c139e20970ee0852166f48ee2a4626632b86e/src/clj/clojure/core.clj#L1713

cc @puredanger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants