You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Pascal Schumacher (JIRA)" <ji...@apache.org> on 2015/07/13 20:40:04 UTC

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

     [ 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)