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

Static method invocation + type hint not working #823

Open
borkdude opened this issue Oct 25, 2022 · 0 comments
Open

Static method invocation + type hint not working #823

borkdude opened this issue Oct 25, 2022 · 0 comments

Comments

@borkdude
Copy link
Collaborator

borkdude commented Oct 25, 2022

See babashka/babashka#1409

The issue here is that clojure.lang.Reflector looks at the runtime values of arguments but if such a value is nil it qualifies as basically anything.

It might be better if we starter supporting intercepting method invocations so users can handle these, also for performance.

:classes {java.nio.file.FileSystems {:static-methods {newFileSystem (fn ...)}}}

or so

@borkdude borkdude changed the title Type hint on let binding with nil value causes NPE Static method invocation + type hint not working Oct 26, 2022
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

No branches or pull requests

1 participant