On 1 September 2015 at 17:34, Mayank Jain <firesof...@gmail.com> wrote: > > It throws Stackoverflow error > > StackOverflowError >> clojure.lang.Util.equiv (Util.java:33) >> clojure.core/isa? (core.clj:5115) >> clojure.lang.Var.invoke (Var.java:388) >> clojure.lang.MultiFn.isA (MultiFn.java:123) >> clojure.lang.MultiFn.findAndCacheBestMethod (MultiFn.java:177) >> clojure.lang.MultiFn.getMethod (MultiFn.java:150) >> clojure.lang.MultiFn.getFn (MultiFn.java:158) >> clojure.lang.MultiFn.invoke (MultiFn.java:227) > > > Any idea why this could be happening? > > My mistake, sorry. We need to assign another var to hold the version that hasn't been overridden:
(def old-report clojure.test/report) (defmethod custom-report :default [m] (old-report m)) That should now work. - James -- 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/d/optout.