[ 
https://issues.apache.org/jira/browse/GROOVY-10403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17461117#comment-17461117
 ] 

Paul King commented on GROOVY-10403:
------------------------------------

Just some background. In Groovy 4 we now support annotations in more places 
(needed for type annotations), so whereas even in the Groovy codebase we shared 
things like void return type across methods, we now create a copy 
(plainnodereference). Void returns and primitives are the main places to watch 
out for.

> @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
>            Assignee: Eric Milles
>            Priority: Major
>         Attachments: SpecRewriter.java
>
>
> 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)

Reply via email to