You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (Jira)" <ji...@apache.org> on 2020/07/23 14:17:06 UTC
[jira] [Closed] (GROOVY-9604) STC: method or property missing
errors for Closure's getResolveStrategy(), etc.
[ https://issues.apache.org/jira/browse/GROOVY-9604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King closed GROOVY-9604.
-----------------------------
> STC: method or property missing errors for Closure's getResolveStrategy(), etc.
> -------------------------------------------------------------------------------
>
> Key: GROOVY-9604
> URL: https://issues.apache.org/jira/browse/GROOVY-9604
> Project: Groovy
> Issue Type: Bug
> Reporter: Eric Milles
> Assignee: Eric Milles
> Priority: Minor
> Fix For: 4.0.0-alpha-1, 3.0.5
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Consider the following:
> {code:groovy}
> @groovy.transform.CompileStatic
> class C {
> void m() {
> { ->
> getResolveStrategy() // and other Closure methods/properties except "owner", "delegate" and "thisObject"
> }()
> }
> }
> {code}
> Trying to access the enclosing closure's metadata results in STC compiler errors.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)