Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-9225

Parser error on certain map keys

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Not A Bug
    • Affects Version/s: 2.5.8
    • Fix Version/s: None
    • Component/s: groovy-jdk
    • Labels:
      None

      Description

      The groovy parser fails on certain keys in associative arrays, but no on others.

      A working example:

      def x = [01: "hey"]
      

      This example fails:

      def x = [09: "hey"]
      

      With the message:

      groovysh_parse: 2: unexpected token: 9 @ line 2, column 11.
         def x = [09: "q"]
                   ^
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Markert Søren Markert
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: