GROOVY-6051 (applied from groovy 2.1.2) - http://jira.codehaus.org/browse/GRECLIPSE-1550