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 2022/02/03 22:35:01 UTC
[jira] [Closed] (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 ]
Paul King closed GROOVY-5245.
-----------------------------
> 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
> Assignee: Eric Milles
> Priority: Major
> Fix For: 4.0.0-beta-1
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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
(v8.20.1#820001)