[
https://issues.apache.org/jira/browse/GROOVY-10299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Milles updated GROOVY-10299:
---------------------------------
Component/s: Stub generator / Joint compiler
> Groovy compiler generates invalid Java stubs
> --------------------------------------------
>
> Key: GROOVY-10299
> URL: https://issues.apache.org/jira/browse/GROOVY-10299
> Project: Groovy
> Issue Type: Bug
> Components: Stub generator / Joint compiler
> Affects Versions: 4.0.0-beta-1
> Reporter: Lóránt Pintér
> Assignee: Eric Milles
> Priority: Major
> Fix For: 4.0.0-beta-2, 3.0.10
>
> Attachments: BaseGradleRunnerIntegrationTest.java
>
>
> Steps to reproduce:
> * check out
> https://github.com/gradle/gradle/releases/tag/groovy-4-compile-problem-2
> * run {{./gradlew :test-kit:compileIntegTestGroovy --no-configuration-cache}}
> {code}
> > Task :test-kit:compileIntegTestGroovy FAILED
> 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/test-kit/build/tmp/compileIntegTestGroovy/groovy-java-stubs/org/gradle/testkit/runner/BaseGradleRunnerIntegrationTest.java:92:
> error: '.class' expected
> protected final boolean debug = new java.lang.Boolean((boolean ->
> boolean)false);
> ^
> /Users/lptr/Workspace/gradle/gradle/subprojects/test-kit/build/tmp/compileIntegTestGroovy/groovy-java-stubs/org/gradle/testkit/runner/BaseGradleRunnerIntegrationTest.java:92:
> error: <identifier> expected
> protected final boolean debug = new java.lang.Boolean((boolean ->
> boolean)false);
> ^
> /Users/lptr/Workspace/gradle/gradle/subprojects/test-kit/build/tmp/compileIntegTestGroovy/groovy-java-stubs/org/gradle/testkit/runner/BaseGradleRunnerIntegrationTest.java:92:
> error: unexpected type
> protected final boolean debug = new java.lang.Boolean((boolean ->
> boolean)false);
> ^
> required: value
> found: class
> 3 errors
> startup failed:
> Compilation failed; see the compiler error output for details.
> 1 error
> {code}
> See the attached {{BaseGradleRunnerIntegrationTest.java}} for the generated
> stubs.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)