You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Daniel Sun (JIRA)" <ji...@apache.org> on 2019/08/14 14:01:00 UTC
[jira] [Closed] (GROOVY-9225) Parser error on certain map keys
[ https://issues.apache.org/jira/browse/GROOVY-9225?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Sun closed GROOVY-9225.
------------------------------
Resolution: Not A Bug
> Parser error on certain map keys
> --------------------------------
>
> Key: GROOVY-9225
> URL: https://issues.apache.org/jira/browse/GROOVY-9225
> Project: Groovy
> Issue Type: Bug
> Components: groovy-jdk
> Affects Versions: 2.5.8
> Reporter: Søren Markert
> Priority: Critical
>
> The groovy parser fails on certain keys in associative arrays, but no on others.
> A working example:
> {code}
> def x = [01: "hey"]
> {code}
> This example fails:
> {code}
> def x = [09: "hey"]
> {code}
> With the message:
> {noformat}
> groovysh_parse: 2: unexpected token: 9 @ line 2, column 11.
> def x = [09: "q"]
> ^
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)