Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
2.1.3
-
None
Description
If a class defines a constructor which takes a map as argument, then the type checker doesn't recognize it and will think that constructor calls with maps are the default groovy map-style constructor.
example:
class Foo { String message Foo(Map map) { message = map.msg } } def foo = new Foo(msg: 'bar') assert foo.message == 'bar'
Fails with:
[Static type checking] - No such property: msg for class: Foo