You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Daniel Sun (Jira)" <ji...@apache.org> on 2025/06/22 16:30:00 UTC
[jira] [Updated] (GROOVY-11703) Fails to compile due to forbidden access to `this` of interface
[ https://issues.apache.org/jira/browse/GROOVY-11703?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Sun updated GROOVY-11703:
--------------------------------
Summary: Fails to compile due to forbidden access to `this` of interface (was: GINQ module fails to compile due to forbidden access to SyntaxErrorReportable#this in `GinqAstWalker`)
> Fails to compile due to forbidden access to `this` of interface
> ---------------------------------------------------------------
>
> Key: GROOVY-11703
> URL: https://issues.apache.org/jira/browse/GROOVY-11703
> Project: Groovy
> Issue Type: Bug
> Components: Static Type Checker
> Affects Versions: 5.0.0-beta-1
> Reporter: Daniel Sun
> Priority: Major
> Fix For: 5.0.0-beta-2
>
>
> When I add {{@CompileStatic}} back to {{{}GinqAstWalker{}}}, the following errors occur. I am not sure if the commit is a breaking change or some unexpected bug introduced.
> {code:java}
> > Task :groovy-ginq:compileGroovy
> Groovy compilation avoidance is an incubating feature.
> startup failed:
> /home/daniel/IdeaProjects/groovy/subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/GinqAstWalker.groovy: -1: Access to org.apache.groovy.ginq.dsl.SyntaxErrorReportable#this is forbidden @ line -1, column -1.
> /home/daniel/IdeaProjects/groovy/subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/GinqAstWalker.groovy: -1: Access to org.apache.groovy.ginq.dsl.SyntaxErrorReportable#this is forbidden @ line -1, column -1.
> /home/daniel/IdeaProjects/groovy/subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/GinqAstWalker.groovy: -1: Access to org.apache.groovy.ginq.dsl.SyntaxErrorReportable#this is forbidden @ line -1, column -1.
> /home/daniel/IdeaProjects/groovy/subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/GinqAstWalker.groovy: -1: Access to org.apache.groovy.ginq.dsl.SyntaxErrorReportable#this is forbidden @ line -1, column -1.
> 4 errors
> {code}
> The related commit is: [https://github.com/apache/groovy/commit/b7711d8511da7d9eb55af7a4a9a66e736cc8b914#diff-99452f892c35cced958acba638314834abb1e7c66bab336817f4c7187b8d06fc]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)