GROOVY-6405: patch to help Groovy on GE with JDK8