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

Parser error on certain map keys

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Not A Bug
    • 2.5.8
    • None
    • groovy-jdk
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: