Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
def e = new Expando
e.class = "hello world"
assert e.class = "hello world"
should work. This work in very early stages of groovy, as you can see here: http://jira.codehaus.org/browse/GROOVY-114
James closed in and I was not able to find discussion about this on gmane.org. Remember also if the class above would be a map, it would work. SO we already have an exception here. I think it would be consistent to make this work for Expando too