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/10/15 18:00:07 UTC
[jira] [Updated] (GROOVY-5781) A missing property that doesn't
cause MissingPropertyException
[ https://issues.apache.org/jira/browse/GROOVY-5781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pascal Schumacher updated GROOVY-5781:
--------------------------------------
Affects Version/s: 1.8.6
2.0.5
> A missing property that doesn't cause MissingPropertyException
> --------------------------------------------------------------
>
> Key: GROOVY-5781
> URL: https://issues.apache.org/jira/browse/GROOVY-5781
> Project: Groovy
> Issue Type: Bug
> Components: Compiler
> Affects Versions: 1.8.6, 2.0.5
> Reporter: Cyril Martin
>
> The following script works but it should not because v is undefined.
> def v = v? v : (0==1); 0
> But if we replace 0 by (1-1), or (0==1) by (false), we have the expected issue: MissingPropertyException: No such property: v...
> Tested with Groovy 1.8.6 and 2.0.5
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)