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 2022/02/18 22:15:00 UTC
[jira] [Updated] (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 updated GROOVY-5364:
--------------------------------
Fix Version/s: 2.5.16
> 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
> Fix For: 4.0.0-beta-1, 2.5.16, 3.0.10
>
>
> 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.20.1#820001)