Fix the build on IBM JDK

Work around http://jira.codehaus.org/browse/GROOVY-7010

+review REVIEW-5226