<< Back to previous view

[CLJCLR-22] Reflector/InvokeConstructor should handle default c-tor for value types Created: 18/May/13  Updated: 18/May/13  Resolved: 18/May/13

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

Type: Defect Priority: Major
Reporter: David Miller Assignee: David Miller
Resolution: Completed Votes: 0
Labels: None


 Description   

Only found when eval'ing.

(defn f [] (new DateTime)) ; works
(def d (new DateTime)) ; does not work

Eval of NewExpression calls Reflector/InvokeConstructor, which does not handle the default c-tor for value types.



 Comments   
Comment by David Miller [ 18/May/13 10:23 PM ]

Special case in Reflector/InvokeConstructor for no infos found, type is Value type, zero args.

Generated at Thu Sep 18 12:51:39 CDT 2014 using JIRA 4.4#649-r158309.