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)

Reply via email to