You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "paolo di tommaso (JIRA)" <ji...@apache.org> on 2017/11/25 11:45:00 UTC
[jira] [Updated] (GROOVY-8390) ConfigSlurm returns an invalid
config object
[ https://issues.apache.org/jira/browse/GROOVY-8390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
paolo di tommaso updated GROOVY-8390:
-------------------------------------
Summary: ConfigSlurm returns an invalid config object (was: ConfigSlurm )
> ConfigSlurm returns an invalid config object
> ---------------------------------------------
>
> Key: GROOVY-8390
> URL: https://issues.apache.org/jira/browse/GROOVY-8390
> Project: Groovy
> Issue Type: Bug
> Affects Versions: 2.4.12
> Reporter: paolo di tommaso
> Priority: Minor
>
> The following config snippet returns an invalid config object:
> {code}
> def CFG = '''
> alpha.container = 'foo'
> profiles { alpha.container='bar' }
> '''
> ConfigObject obj = new ConfigSlurper().parse(CFG)
> assert obj.alpha.container == 'foo'
> assert obj.profiles.alpha.container == 'bar'
> {code}
> it prints the following error:
> {code}
> Assertion failed:
> assert obj.alpha.container == 'foo'
> | | | |
> | | bar false
> | [container:bar]
> [alpha:[container:bar], profiles:[:]]
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)