[jira] [Updated] (GROOVY-5245) Inconsistency with accessing issers as properties

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (GROOVY-5245) Inconsistency with accessing issers as properties

JIRA jira@apache.org

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

Pascal Schumacher updated GROOVY-5245:
--------------------------------------
    Affects Version/s: 2.4.3

> Inconsistency with accessing issers as properties
> -------------------------------------------------
>
>                 Key: GROOVY-5245
>                 URL: https://issues.apache.org/jira/browse/GROOVY-5245
>             Project: Groovy
>          Issue Type: Bug
>          Components: groovy-runtime
>    Affects Versions: 1.8.4, 2.4.3
>            Reporter: Andrew Eisenberg
>
> In the following snippet, the first two statements work as expected,
> but the last one throws a MissingPropertyException.  It seems to me
> that no exceptions should be thrown.  This is on Groovy 1.8.4.
> {code}
> class Isser {
>    boolean isWorking() { true }
> }
> class IsserCat {
>    static boolean getWorking2(Isser b) { true }
>    static boolean isNotWorking(Isser b) { true }
> }
> use (IsserCat) {
>    println new Isser().working
>    println new Isser().working2
>    println new Isser().notWorking  // Missing property exception...why?
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)