Hi,

On 20 Aug., 11:13, Nebojsa Stricevic <nebojsa.strice...@gmail.com>
wrote:

> I'm building a Clojure web app that I would like to migrate to 1.2.
> I've tried to empty source files and then delete one by one :use
> and :require, and I think error is connected with Sandbar lib (0.2.4).
> REPL prints this error:
>
> java.lang.NoSuchMethodError: clojure.lang.RestFn.<init>(I)V (core.clj:
> 1)

One of the libraries you use - maybe sandbar, maybe one of its
dependencies - is AOT compiled against an older version of Clojure. If
not absolutely necessary do not AOT compile libraries. AOT compilation
is only necessary for:

- gen-class and gen-interface
- platforms where byte code generation during runtime is not allowed
- startup time matters (Is this interesting on the JVM? Where startup
sucks anyway?)

The first point is in practise maybe the most interesting.

If none of the above is necessary for your program or its dependencies
skip the AOT compilation.

Sincerely
Meikel

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

Reply via email to