[CLJ-884] Reflector error messages can be improved when no matching method is found. Created: 27/Nov/11 Updated: 03/Sep/13
|Affects Version/s:||Release 1.3|
When accessing a java method with an arity mismatch or a mismatched parameter type, Reflector.java returns the following error on REPL:
eventhough method xyz might exist on MyClass, but was being called with the wrong number of arguments.
Attached is a patch that fixes that problem.
|Comment by Andy Fingerhut [ 22/Mar/12 8:47 PM ]|
diff.patch of Nov 27, 2011 does not apply cleanly to latest master version of Clojure code (using "patch -p1 < diff.patch", at least). It is preferred by Clojure team that patches are in git format-patch format. Instructions for producing such a patch are given at http://clojure.org/patches
Rahul, are you planning to sign a Clojure Contributor Agreement? Without that, this code cannot be included in Clojure, unless a contributor reimplements it on their own.
|Comment by Andy Fingerhut [ 23/Mar/12 1:14 AM ]|
In private communication with the patch author today, he expressed an interest in submitting a signed CA so this patch can be considered for inclusion in Clojure.