groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "paolo di tommaso (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GROOVY-8390) ConfigSlurm
Date Sat, 25 Nov 2017 11:44:00 GMT
paolo di tommaso created GROOVY-8390:
----------------------------------------

             Summary: ConfigSlurm 
                 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)

Mime
View raw message