You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Lóránt Pintér (Jira)" <ji...@apache.org> on 2021/10/08 09:13:00 UTC
[jira] [Created] (GROOVY-10290) Dynamic Groovy code in Gradle
doesn't compile because of $getLookup() method is not static
Lóránt Pintér created GROOVY-10290:
--------------------------------------
Summary: Dynamic Groovy code in Gradle doesn't compile because of $getLookup() method is not static
Key: GROOVY-10290
URL: https://issues.apache.org/jira/browse/GROOVY-10290
Project: Groovy
Issue Type: Bug
Affects Versions: 4.0.0-beta-1
Reporter: Lóránt Pintér
Attachments: SFTPServer.java
Steps to reproduce:
* check out [https://github.com/gradle/gradle/releases/tag/groovy-4-compile-problem]
* run {{./gradlew :internal-integ-test:compileGroovy --no-configuration-cache}}
Output:
{{> Task :internal-integ-testing:compileGroovy}}
{{ Groovy compilation avoidance is an incubating feature.}}
{{ Executing Spock 2.0.0-groovy-3.0 with NOT compatible Groovy version 4.0.0-beta-1 due to set spock.iKnowWhatImDoing.disableGroovyVersionCheck system property. This is unsupported and may result in weird runtime errors!}}
{{ /Users/lptr/Workspace/gradle/gradle/subprojects/internal-integ-testing/build/tmp/compileGroovy/groovy-java-stubs/org/gradle/test/fixtures/server/sftp/SFTPServer.java:164: error: $getLookup() in SFTPServer.SftpExpectOneOpen cannot override $getLookup() in SftpExpectOnePath}}
{{ public java.lang.invoke.MethodHandles.Lookup $getLookup()}}{{{ return (java.lang.invoke.MethodHandles.Lookup)null;}}}
{{ ^}}
{{ overridden method is static}}
{{ /Users/lptr/Workspace/gradle/gradle/subprojects/internal-integ-testing/build/tmp/compileGroovy/groovy-java-stubs/org/gradle/test/fixtures/server/sftp/SFTPServer.java:178: error: $getLookup() in SFTPServer.SftpExpectOneHandle cannot override $getLookup() in SftpExpectOnePath}}
{{ public java.lang.invoke.MethodHandles.Lookup $getLookup() \{ return (java.lang.invoke.MethodHandles.Lookup)null;}}}{{^}}
{{ overridden method is static}}
See the attached {{SFTPServer.java}} for the generated stubs.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)