GROOVY-5947: Build failures on JDK8 with ProxyGeneratorAdapter