It wasn't really this specific problem that I wanted to point out but more to trigger a rethink of how errors are reported back to the user. Here's an example that gives an error somewhat similar to the one I posted:
(defn testing [a b] (print a b)) (testing) java.lang.NoSuchMethodError: java.lang.Class.getSimpleName()Ljava/lang/String; (testing.clj:0) at clojure.lang.Compiler.eval(Compiler.java:4533) at clojure.lang.Compiler.load(Compiler.java:4846) at clojure.lang.Compiler.loadFile(Compiler.java:4813) at clojure.main$load_script__5793.invoke(main.clj:206) at clojure.main$script_opt__5824.invoke(main.clj:258) at clojure.main$main__5848$fn__5850.invoke(main.clj:333) at clojure.main$main__5848.doInvoke(main.clj:328) at clojure.lang.RestFn.invoke(RestFn.java:413) at clojure.lang.Var.invoke(Var.java:346) at clojure.lang.AFn.applyToHelper(AFn.java:173) at clojure.lang.Var.applyTo(Var.java:463) at clojure.main.main(main.java:39) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:582) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) Caused by: java.lang.NoSuchMethodError: java.lang.Class.getSimpleName()Ljava/lang/String; at clojure.lang.AFn.throwArity(AFn.java:447) at clojure.lang.AFn.invoke(AFn.java:48) at user$eval__4.invoke(testing.clj:3) at clojure.lang.Compiler.eval(Compiler.java:4522) ... 16 more Using latest released version of clojure. 2009/3/29 Stephen C. Gilardi <squee...@mac.com> > > On Mar 28, 2009, at 8:01 PM, Glen Stampoultzis wrote: > > Sorry I just realized I was a bit ambiguous with this. The exception does >> show the line number (in the second stack trace). But it's gone missing in >> the top one. >> > > Is this with the current svn or most recent release of Clojure? It would be > helpful if you could post a (small) reproducible recipe for a test case that > shows the problem. > > --Steve > > --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---