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/05/28 14:48:00 UTC

[jira] [Assigned] (GROOVY-5364) Static property reference from static context in script does not compile

     [ https://issues.apache.org/jira/browse/GROOVY-5364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Milles reassigned GROOVY-5364:
-----------------------------------

    Assignee: Eric Milles

> Static property reference from static context in script does not compile
> ------------------------------------------------------------------------
>
>                 Key: GROOVY-5364
>                 URL: https://issues.apache.org/jira/browse/GROOVY-5364
>             Project: Groovy
>          Issue Type: Bug
>          Components: Compiler
>    Affects Versions: 1.8.6, 2.4.0-beta-3
>            Reporter: Bob Tiernay
>            Assignee: Eric Milles
>            Priority: Major
>
> The following script:
> {code}
> static getStaticProperty() {}
> static staticMethod() { staticProperty }
> {code}
> Does not compile and produces the following error:
> {noformat}
> You misspelled a classname or statically imported field. Please check the spelling.
> You attempted to use a method 'staticProperty' but left out brackets in a place not allowed by the grammar.
>  @ line 4, column 25.
>    static staticMethod() { staticProperty }
>                            ^
> 1 error
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)