Here is the answer
http://jira.codehaus.org/browse/GROOVY-1824
EDIT - required. I think the semantics of the Map is that if you have
def m = [one:1, two:2]
you must have access to the records on the map, for example
m.one
In other words, accessing a map is like getting a property on a map object. If a
m.class
returned the class, it would break the semantics, because the "class" is not a key added to the map by the programmer.
Here is what I collect ....
hvgotcodes
source share