This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-12
Channels
- # aleph (1)
- # announcements (1)
- # beginners (54)
- # calva (11)
- # clojure (55)
- # clojure-france (1)
- # clojure-italy (4)
- # clojure-spec (10)
- # clojure-uk (7)
- # clojurescript (3)
- # cursive (3)
- # data-science (8)
- # datomic (10)
- # emacs (1)
- # fulcro (21)
- # graalvm (2)
- # jobs (1)
- # kaocha (1)
- # nrepl (1)
- # nyc (1)
- # other-languages (5)
- # reitit (8)
- # rum (5)
- # shadow-cljs (84)
- # spacemacs (2)
- # sql (20)
- # testing (3)
- # vim (1)
Hello, does anyone else reflection warnings using next.jdbc and it's dep clojure.java.jdbc?
Reflection warning, clojure/java/data.clj:31:29 - call to method getParameterTypes can't be resolved (target class is unknown).
Reflection warning, clojure/java/data.clj:31:20 - call to static method alength on clojure.lang.RT can't be resolved (argument types: unknown).
Reflection warning, clojure/java/data.clj:35:16 - call to method invoke can't be resolved (target class is unknown).
Reflection warning, clojure/java/data.clj:38:14 - reference to field getName can't be resolved.
Reflection warning, clojure/java/data.clj:39:16 - reference to field getReadMethod can't be resolved.
Reflection warning, clojure/java/data.clj:48:29 - call to method getParameterTypes can't be resolved (target class is unknown).
Reflection warning, clojure/java/data.clj:48:20 - call to static method alength on clojure.lang.RT can't be resolved (argument types: unknown).
Reflection warning, clojure/java/data.clj:51:8 - reference to field getParameterTypes can't be resolved.
Reflection warning, clojure/java/data.clj:55:7 - call to method invoke can't be resolved (target class is unknown).
Reflection warning, clojure/java/data.clj:58:14 - reference to field getName can't be resolved.
Reflection warning, clojure/java/data.clj:59:16 - reference to field getWriteMethod can't be resolved.
Reflection warning, clojure/java/data.clj:65:13 - reference to field getComponentType can't be resolved.
Reflection warning, clojure/java/data.clj:69:5 - call to method addMethod can't be resolved (target class is unknown).
Reflection warning, clojure/java/data.clj:70:5 - call to method addMethod can't be resolved (target class is unknown).
Reflection warning, clojure/java/data.clj:83:21 - call to method getDeclaredMethod can't be resolved (target class is unknown).
Reflection warning, clojure/java/data.clj:83:12 - call to method invoke can't be resolved (target class is unknown).
Reflection warning, clojure/java/data.clj:87:55 - reference to field getCanonicalName can't be resolved.
Reflection warning, clojure/java/data.clj:95:18 - reference to field newInstance can't be resolved.
I'm used to getting those.. probably have the same ones if I let all those warnings show. With Oracle JDK 11 using defaults you only see the first few. Which JDK are you using?
would be nice to find a way to not see them, whilst still using the lib, and leaving reflection warnings turned on for else where
Those warnings are coming from clojure.java.data
, not jdbc
.
Yep. Thought I'd post that here as next jdbc depends on it and you're a core committer, apologies if wrong place though.
Do you know if there's a JIRA ticket for those reflection warnings in the Clojure project? I'll go look if you don't know off the top of your head.
Doesn't seem so. I'll open one.
Hmm, apparently I can't create a new issue in JIRA for java.data
-- I'm not a designated maintainer for it. I'll ping Alex...
JDATA-13. I'll fix those if I can and ask Alex to cut a new release.
Wow, thanks @seancorfield
Looks like JDATA-2 was the original issue that fixed some (many) previous warnings.
@jonpither If you want to depend on the git master of java.data
, those reflection warnings should be fixed now.
Either Alex will cut 0.1.2 soon or make me the maintainer and I'll cut it.
Thanks @seancorfield I will give it a whirl
Alex just cut 0.1.2 so that'll be up on Maven Central "soon". Then I'll probably tackle some more tickets next weekend and cut 0.1.3.
seancorfield/next.jdbc
master updated to use org.clojure/java.data "0.1.2"
so no more reflection warnings 🙂