<< Back to previous view

[CLJCLR-4] Error running recursion example from Created: 13/Jul/12  Updated: 12/Mar/13  Resolved: 12/Mar/13

Status: Resolved
Project: ClojureCLR
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Minor
Reporter: Andrew Myers Assignee: David Miller
Resolution: Completed Votes: 0
Labels: None

Windows 7, 64 bit

Attachments: Text File factorial-1.clj    


The "factorial-1" example from Mark Volkmann's tutorial gives an error when run on ClojureCLR. The error is shown below:

c:\cljdev\clojure-clr-1.4.0-Debug-4.0\Debug 4.0>Clojure.Main.exe c:\users\amyers

Unhandled Exception: System.MissingMethodException: Cannot find member box match
ing args
at CallSite.Target(Closure , CallSite , Object , Int64 )
at CallSite.Target(Closure , CallSite , Object , Int64 )
at user$factorial_1_5._interop_box7(Object , Int64 __temp_1)
at user$factorial_1__5.invoke(Object ) in eval:line 1
at user$eval_9_14.invoke() in eval:line 9
at clojure.lang.Compiler.eval(Object form) in D:\work\clojure-clr\Clojure\Clo
jure\CljCompiler\Compiler.cs:line 871
at clojure.lang.Compiler.load(TextReader rdr, String sourcePath, String sourc
eName, String relativePath) in D:\work\clojure-clr\Clojure\Clojure\CljCompiler\C
ompiler.cs:line 1385
at clojure.lang.Compiler.loadFile(String fileName) in D:\work\clojure-clr\Clo
jure\Clojure\CljCompiler\Compiler.cs:line 1342
at clojure/main$load_script__20722.invoke(Object ) in main.clj:line 301
at clojure/main$script_opt__20794.invoke(Object , Object ) in main.clj:line 3
at clojure/main$main__20838.doInvoke(Object ) in main.clj:line 446
at clojure.lang.RestFn.invoke(Object arg1) in D:\work\clojure-clr\Clojure\Clo
jure\Lib\RestFn.cs:line 468
at clojure.lang.Var.invoke(Object arg1) in D:\work\clojure-clr\Clojure\Clojur
e\Lib\Var.cs:line 741
at clojure.lang.AFn.ApplyToHelper(IFn fn, ISeq argList) in D:\work\clojure-cl
r\Clojure\Clojure\Lib\AFn.cs:line 191
at clojure.lang.Var.applyTo(ISeq arglist) in D:\work\clojure-clr\Clojure\Cloj
ure\Lib\Var.cs:line 874
at Clojure.CljMain.Main(String[] args) in D:\work\clojure-clr\Clojure\Clojure
.Main\Main.cs:line 34

Comment by David Miller [ 12/Mar/13 4:45 PM ]

Fixed in commit ead2496

Missing definition for RT.box.
Been missing for a long time.
Screws up loops that box the loop args.

Generated at Wed Jan 24 03:28:17 CST 2018 using JIRA 4.4#649-r158309.