tools.analyzer

Forms emitted from t.a(.jvm) produce reflection warning not present in original code

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

Latest t.a(.jvm) as of today (after TANAL-75 commit), Clojure 1.6.0, latest Eastwood as of today, latest version of 'tools.nrepl' lib as of Feb 28 2014 (and today):

% lein with-profile +1.6 eastwood '{:namespaces [ clojure.tools.nrepl.middleware.session ]}'
Reflection warning, clojure/data/priority_map.clj:215:19 - call to method equiv on java.lang.Object can't be resolved (no such method).
Reflection warning, clojure/core/memoize.clj:72:23 - reference to field cache can't be resolved.
== Eastwood 0.1.2-SNAPSHOT Clojure 1.6.0 JVM 1.7.0_51
== Linting clojure.tools.nrepl.middleware.session ==
Reflection warning, clojure/tools/logging.clj:270:1 - call to method isLoggable can't be resolved (target class is unknown).
Reflection warning, clojure/tools/logging.clj:270:1 - call to method log can't be resolved (target class is unknown).
Reflection warning, clojure/tools/logging.clj:270:1 - call to method log can't be resolved (target class is unknown).
Reflection warning, clojure/tools/nrepl/middleware/session.clj:230:30 - call to method put can't be resolved (target class is unknown).
Reflection warning, clojure/tools/nrepl/middleware/session.clj:230:30 - call to method put can't be resolved (target class is unknown).

The only lines in the output I am concerned about here are the last 2, about 'call to method put can't be resolved'. Those warnings do not appear in the output of 'lein with-profile +1.6 check' on the same library.

All other reflection warnings produced by Eastwood are the same set as those produced by 'lein check'

Activity

Hide
Nicola Mometto added a comment -

Fixed: https://github.com/clojure/tools.analyzer/commit/c323142cb670f54e7879a906e3b9f295c6d8b5f2

tools.analyzer was discarding the macroexpanded form's meta, now it merges the &form meta into the macroexpanded form's one

Show
Nicola Mometto added a comment - Fixed: https://github.com/clojure/tools.analyzer/commit/c323142cb670f54e7879a906e3b9f295c6d8b5f2 tools.analyzer was discarding the macroexpanded form's meta, now it merges the &form meta into the macroexpanded form's one

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: