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

Strange Groovy bug for Maps in a Enums method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.6-beta-2
    • 1.6-rc-1, 1.5.8, 1.7-beta-1
    • None
    • None
    • Linux, Sun JDK 1.6.0.11

    Description

      This was originally reported on the Grails JIRA at

      http://jira.codehaus.org/browse/GRAILS-3716

      The Groovy version which has this bug is thus the one bundled with Grails-1.1-beta-1, not sure of the actual version.

      The attached app (Grails app) demonstrates the problem: call the something action on the main controller, and the assertion will fail. It is really strange, it seems the key of the Map is not "taku" but "[taku]"...

      Attachments

        1. sample-map.zip
          150 kB
          Jean-Noel Rivasseau

        Activity

          People

            blackdrag Jochen Theodorou
            elvanor Jean-Noel Rivasseau
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: