I was just messing around with array's and produced the following
exception.  I don't actually need this to work for any reason, but I
was rather surprised by the behavior.  Is this a bug or expected
behavior? Please note I'm using revision 1195.

user=> (alength nil)
java.lang.IllegalArgumentException: More than one matching method
found: alength (NO_SOURCE_FILE:146)
user=> (.printStackTrace *e)
java.lang.IllegalArgumentException: More than one matching method
found: alength (NO_SOURCE_FILE:146)
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:4139)
        at clojure.lang.Compiler.analyze(Compiler.java:3961)
        at clojure.lang.Compiler.analyze(Compiler.java:3934)
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:4127)
        at clojure.lang.Compiler.analyze(Compiler.java:3961)
        at clojure.lang.Compiler.analyze(Compiler.java:3934)
        at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:3635)
        at clojure.lang.Compiler$FnMethod.parse(Compiler.java:3474)
        at clojure.lang.Compiler$FnMethod.access$1100(Compiler.java:3351)
        at clojure.lang.Compiler$FnExpr.parse(Compiler.java:2937)
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:4130)
        at clojure.lang.Compiler.analyze(Compiler.java:3961)
        at clojure.lang.Compiler.eval(Compiler.java:4166)
        at clojure.core$eval__3756.invoke(core.clj:1566)
        at clojure.main$repl__5495$fn__5513.invoke(main.clj:148)
        at clojure.main$repl__5495.doInvoke(main.clj:145)
        at clojure.lang.RestFn.invoke(RestFn.java:426)
        at clojure.main$repl_opt__5537.invoke(main.clj:208)
        at clojure.main$legacy_repl__5562.invoke(main.clj:249)
        at clojure.lang.Var.invoke(Var.java:336)
        at clojure.main.legacy_repl(main.java:29)
        at clojure.lang.Repl.main(Repl.java:20)
Caused by: java.lang.IllegalArgumentException: More than one matching
method found: alength
        at clojure.lang.Compiler.getMatchingParams(Compiler.java:2057)
        at clojure.lang.Compiler$StaticMethodExpr.<init>(Compiler.java:1264)
        at clojure.lang.Compiler$HostExpr$Parser.parse(Compiler.java:760)
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:4132)
        ... 21 more
nil
user=>

-Ryan


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

Reply via email to