ClojureCLR

Reflector/InvokeConstructor should handle default c-tor for value types

Details

  • Type: Defect Defect
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • 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.

Activity

David Miller made changes -
Field Original Value New Value
Resolution Completed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: