Bugfix https://jira.codehaus.org/browse/GROOVY-6573

A straightforward fix