task icon indicating copy to clipboard operation
task copied to clipboard

Fix reflection warnings

Open esuomi opened this issue 6 years ago • 3 comments

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).

esuomi avatar Apr 16 '18 09:04 esuomi

How did you encounter these issues?

ane avatar Apr 17 '18 07:04 ane

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

esuomi avatar Apr 17 '18 12:04 esuomi

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

ane avatar Apr 17 '18 16:04 ane