I have,'t looked much into it but my hunch is that it's the same bytecode but loaded by two different classloaders. So a double loading rather than a double compilation.
Christophe On Fri, Feb 22, 2013 at 8:26 AM, Ambrose Bonnaire-Sergeant < abonnaireserge...@gmail.com> wrote: > Hi, > > I don't understand why this `assert` fails when the namespace is compiled > with `compile`. > It seems like the datatype A is being compiled twice. > > (ns mvn-test.core) > > (deftype A []) > > (assert (= (class (A.)) > (class ((fn [] (A.)))))) > > user=> (compile 'mvn-test.core) > CompilerException java.lang.AssertionError: Assert failed: (= (class (A.)) > (class ((fn [] (A.))))), compiling:(core.clj:5:1) > > Here is the project.clj: > > (defproject mvn-test "0.0.1-SNAPSHOT" > :source-paths ["src/main/clojure"] > :dependencies [[org.clojure/clojure "1.5.0-RC16"]]) > > I found this behaviour was the root cause of why `mvn test` fails in > core.typed, > while `lein test` works perfectly. > > Any pointers would be appreciated. > > Thanks, > Ambrose > > -- > -- > 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. > > > -- On Clojure http://clj-me.cgrand.net/ Clojure Programming http://clojurebook.com Training, Consulting & Contracting http://lambdanext.eu/ -- -- 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.