Clone
Adam Murdoch
committed
on 22 Nov 15
Changed the 'set' method that is mixed in to the generated view objects for a property of scalar type so that it now applies the convenience… Show more
Changed the 'set' method that is mixed in to the generated view objects for a property of scalar type so that it now applies the convenience type conversion for the value.

Also generate a dummy 'configure' method for all properties that don't require a real one, which fails with a MissingMethodException. This avoids the setter being invoked in this case and type conversion being attempted on the closure. In theory this will result in a more informative error message when the user attempts to configure a property using a closure, when the property does not support this.

+review REVIEW-5708

Show less

master + 513 more