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


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.

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 Wed Oct 18 15:34:53 CDT 2017 using JIRA 4.4#649-r158309.