Skip to content

Fix reflection warnings #5

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

Open
esuomi opened this issue Apr 16, 2018 · 3 comments
Open

Fix reflection warnings #5

esuomi opened this issue Apr 16, 2018 · 3 comments

Comments

@esuomi
Copy link

esuomi commented Apr 16, 2018

Reflection warning, task/core.clj:79:51 - call to method exceptionally on java.util.concurrent.CompletableFuture can't be resolved (argument types: unknown).
Reflection warning, task/core.clj:84:45 - reference to field getCause can't be resolved.
Reflection warning, task/core.clj:95:27 - call to method get on long can't be resolved (no such method).
Reflection warning, task/core.clj:144:13 - reference to field isDone can't be resolved.
Reflection warning, task/core.clj:145:16 - reference to field get can't be resolved.
Reflection warning, task/core.clj:146:16 - reference to field get can't be resolved.
Reflection warning, task/core.clj:154:18 - call to method thenApplyAsync can't be resolved (target class is unknown).
Reflection warning, task/core.clj:180:18 - call to method thenComposeAsync can't be resolved (target class is unknown).
Reflection warning, task/core.clj:264:5 - call to method completeExceptionally can't be resolved (target class is unknown).
@ane
Copy link
Owner

ane commented Apr 17, 2018

How did you encounter these issues?

@esuomi
Copy link
Author

esuomi commented Apr 17, 2018

In my Lein project.clj added :global-vars {*warn-on-reflection* true} and it started yelling at me :(

@ane
Copy link
Owner

ane commented Apr 17, 2018

Right... um... I'll look into this. Basically I just have to add lots of type hints everywhere.

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

2 participants