You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2021/12/16 17:19:00 UTC
[jira] [Comment Edited] (GROOVY-10403) @CompileStatic causes weird error "Access to java.lang.Object#windows is forbidden" with Groovy 4.0.0-rc-1
[ https://issues.apache.org/jira/browse/GROOVY-10403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17460887#comment-17460887 ]
Eric Milles edited comment on GROOVY-10403 at 12/16/21, 5:18 PM:
-----------------------------------------------------------------
So at some point, this method was created: "void $spock_feature_0_0() from org.spockframework.smoke.WithBlocksStatic". The return type is the shared instance {{ClassHelper.VOID_TYPE}} which has gained type annotations from some other source.
This is the first source that adds to {{void}}: {{$spock_feature_0_2()}} from {{org.spockframework.docs.extension.IssueDocSpec}}
was (Author: emilles):
So at some point, this method was created: "void $spock_feature_0_0() from org.spockframework.smoke.WithBlocksStatic". The return type is the shared instance {{ClassHelper.VOID_TYPE}} which has gained type annotations from some other source.
> @CompileStatic causes weird error "Access to java.lang.Object#windows is forbidden" with Groovy 4.0.0-rc-1
> ----------------------------------------------------------------------------------------------------------
>
> Key: GROOVY-10403
> URL: https://issues.apache.org/jira/browse/GROOVY-10403
> Project: Groovy
> Issue Type: Bug
> Affects Versions: 4.0.0-rc-1
> Reporter: Leonard Brünings
> Priority: Major
>
> We have a weird error with Groovy 4.0.0-rc1 https://github.com/spockframework/spock/runs/4422060586?check_suite_focus=true#step:8:111 which fails for this line https://github.com/leonard84/spock/blob/47a3a69b0f53c8e1dd1a576331c8d9933e761ac8/spock-specs/src/test/groovy/org/spockframework/smoke/WithBlocksStatic.groovy#L29
--
This message was sent by Atlassian Jira
(v8.20.1#820001)