On Sun, Dec 12, 2010 at 9:45 AM, Manuel Weikert <manuel.weik...@googlemail.com> wrote: > Why does this error only occur when I use ClojureQL? I built other > jars bofore using many other libraries and never ran into this...
It's because of protocols. Code that uses protocols behaves differently when it's AOT-compiled--the reference to the compiled version of the protocol is hard-coded into the AOT output. This is different from regular code where it's able to fall back to JITted code when the unrelated class files are removed. There's really no good answer here until CLJ-322 is fixed. Either you bundle a bunch of unrelated junk in your jars or you have issues with code that depends on 3rd-party protocols. I didn't realize the protocol problem was this bad when I released Leiningen 1.4.0, so I will probably release a 1.4.1 version that turns this behaviour off by default and just continue with libraries bundling unrelated class files unless they explicitly turn on the cleaning behaviour. -Phil -- 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