No, lein check will give you reflection warnings on 3rd party libraries... (sean)-(jobs:0)-(/Developer/workspace/worldsingles/ws/model/clojure/worldsingles) (! 505)-> lein check Compiling namespace worldsingles.activity Reflection warning, clojure/core/incubator.clj:84:7 - reference to field getClass can't be resolved. Reflection warning, clojure/core/incubator.clj:84:7 - reference to field isArray can't be resolved. Reflection warning, somnium/congomongo.clj:60:38 - reference to field getModifiers can't be resolved. Reflection warning, somnium/congomongo.clj:63:67 - reference to field getReturnType can't be resolved. ... many others omitted ... Reflection warning, clojure/tools/nrepl/ack.clj:47:3 - reference to field close can't be resolved. Reflection warning, clojure/tools/nrepl/middleware.clj:135:3 - call to replaceAll can't be resolved. Reflection warning, clojure/tools/nrepl/middleware/interruptible_eval.clj:53:52 - reference to field iterator can't be resolved. Reflection warning, clojure/tools/nrepl/middleware/interruptible_eval.clj:109:3 - call to java.util.concurrent.ThreadPoolExecutor ctor can't be resolved. Reflection warning, clojure/tools/nrepl/middleware/session.clj:41:54 - call to append can't be resolved. Reflection warning, clojure/tools/nrepl/middleware/session.clj:230:30 - call to put can't be resolved. Reflection warning, clojure/tools/nrepl/middleware/session.clj:230:30 - call to put can't be resolved. Reflection warning, clojure/tools/nrepl/server.clj:42:21 - reference to field close can't be resolved. Reflection warning, clojure/tools/nrepl/server.clj:133:28 - call to java.net.InetSocketAddress ctor can't be resolved. Reflection warning, clj_time/core.clj:577:10 - reference to field getDayOfMonth can't be resolved. Compiling namespace worldsingles.admin.email Compiling namespace worldsingles.admin.permissions Compiling namespace worldsingles.admin.photos Reflection warning, image_resizer/util.clj:10:5 - call to read can't be resolved. Reflection warning, image_resizer/util.clj:13:4 - reference to field getWidth can't be resolved. Reflection warning, image_resizer/util.clj:13:22 - reference to field getHeight can't be resolved. ... and on and on for many pages ...
On Mon, Dec 23, 2013 at 7:57 AM, juan.facorro <juan.faco...@gmail.com> wrote: > Hi Larry, > > This is not exactly what you asked but it might be helpful. There's a check > command in leiningen wich "Check[s] syntax and warn[s] on reflection." only > for the *.clj files in your project's source files. This doesn't really > resolve the reflection warnings for the libraries you are using, but makes > identifying the warning in your project a lot easier than whan they are > mixed with the others. > > HTH, > > Juan > > On Sunday, December 22, 2013 7:33:56 PM UTC-3, larry google groups wrote: >> >> >> I know this has been discussed before but I could not find anything like a >> canonical answer via Google. I just set to >> >> :warn-on-reflection true >> >> in my project.clj and now I get the following warnings. How do I fix the >> warnings that are in 3rd party libraries? How do I add type hints to code I >> :use or :require? >> >> lein uberjar >> Compiling admin.core >> Reflection warning, admin/monitoring.clj:15:5 - call to enumerate can't be >> resolved. >> Reflection warning, admin/monitoring.clj:22:27 - reference to field >> getName can't be resolved. >> Reflection warning, admin/monitoring.clj:27:25 - reference to field getId >> can't be resolved. >> Reflection warning, admin/monitoring.clj:34:50 - reference to field getId >> can't be resolved. >> Reflection warning, admin/monitoring.clj:37:26 - reference to field >> getName can't be resolved. >> Reflection warning, admin/monitoring.clj:37:39 - reference to field getId >> can't be resolved. >> Reflection warning, clj_time/core.clj:577:10 - reference to field >> getDayOfMonth can't be resolved. >> Reflection warning, monger/joda_time.clj:32:19 - reference to field toDate >> can't be resolved. >> Reflection warning, monger/joda_time.clj:64:14 - reference to field toDate >> can't be resolved. >> Reflection warning, clojure/core/incubator.clj:90:7 - reference to field >> getClass can't be resolved. >> Reflection warning, clojure/core/incubator.clj:90:7 - reference to field >> isArray can't be resolved. >> Reflection warning, lamina/trace/timer.clj:173:7 - call to enqueue can't >> be resolved. >> Reflection warning, lamina/trace/timer.clj:302:5 - call to enqueue can't >> be resolved. >> Reflection warning, formative/util.clj:37:9 - call to valueOf can't be >> resolved. >> Reflection warning, jkkramer/verily.clj:304:15 - call to digit can't be >> resolved. >> Reflection warning, formative/parse.clj:45:9 - call to valueOf can't be >> resolved. >> Reflection warning, formative/parse.clj:49:15 - call to valueOf can't be >> resolved. >> Reflection warning, formative/parse.clj:55:13 - call to valueOf can't be >> resolved. >> Reflection warning, formative/parse.clj:74:13 - call to >> java.math.BigDecimal ctor can't be resolved. >> Reflection warning, formative/parse.clj:87:21 - call to >> java.math.BigInteger ctor can't be resolved. >> Reflection warning, admin/controller.clj:159:29 - reference to field >> toString can't be resolved. >> Reflection warning, admin/controller.clj:159:29 - reference to field >> toString can't be resolved. >> Reflection warning, net/cgrand/xml.clj:85:4 - call to parse can't be >> resolved. >> Reflection warning, net/cgrand/tagsoup.clj:15:3 - call to parse can't be >> resolved. >> Reflection warning, net/cgrand/tagsoup.clj:32:18 - call to >> org.xml.sax.InputSource ctor can't be resolved. >> Reflection warning, net/cgrand/enlive_html.clj:54:16 - call to >> org.xml.sax.InputSource ctor can't be resolved. >> Reflection warning, admin/supervisor.clj:54:5 - call to java.lang.Thread >> ctor can't be resolved. >> Reflection warning, admin/supervisor.clj:54:5 - call to java.lang.Thread >> ctor can't be resolved. >> Reflection warning, clojure/tools/reader/default_data_readers.clj:175:20 - >> reference to field get can't be resolved. >> Reflection warning, clojure/tools/reader/default_data_readers.clj:177:15 - >> call to format can't be resolved. >> Reflection warning, clojure/tools/reader/default_data_readers.clj:177:5 - >> call to write can't be resolved. >> Reflection warning, clojure/tools/reader/default_data_readers.clj:220:20 - >> reference to field get can't be resolved. >> Reflection warning, clojure/tools/reader/default_data_readers.clj:222:15 - >> call to format can't be resolved. >> Reflection warning, clojure/tools/reader/default_data_readers.clj:222:5 - >> call to write can't be resolved. >> Reflection warning, clojure/tools/reader.clj:71:20 - call to digit can't >> be resolved. >> Reflection warning, clojure/tools/reader.clj:77:20 - call to digit can't >> be resolved. >> Reflection warning, clojure/tools/reader.clj:89:24 - call to digit can't >> be resolved. >> Reflection warning, clojure/tools/reader.clj:214:23 - call to digit can't >> be resolved. >> Reflection warning, clojure/tools/reader.clj:218:23 - call to digit can't >> be resolved. >> Reflection warning, clojure/tools/reader/edn.clj:78:20 - call to digit >> can't be resolved. >> Reflection warning, clojure/tools/reader/edn.clj:84:20 - call to digit >> can't be resolved. >> Reflection warning, clojure/tools/reader/edn.clj:96:24 - call to digit >> can't be resolved. >> Reflection warning, clojure/tools/reader/edn.clj:205:23 - call to digit >> can't be resolved. >> Reflection warning, clojure/tools/reader/edn.clj:209:23 - call to digit >> can't be resolved. >> Reflection warning, ns_tracker/core.clj:20:28 - reference to field >> lastModified can't be resolved. >> Reflection warning, ns_tracker/core.clj:25:6 - reference to field >> lastModified can't be resolved. >> Reflection warning, ring/middleware/session/cookie.clj:82:27 - reference >> to field getBytes can't be resolved. > > -- > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ "Perfection is the enemy of the good." -- Gustave Flaubert, French realist novelist (1821-1880) -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.