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

property assignment using ["property"] doesn't work correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-1
    • 1.0-beta-6
    • parser
    • None
    • Win XP SUN JDK 1.4.1_2

    Description

      the is assigned instead of the desired property

      Example:
      map = ["node1":"x"]
      assert "x" == map["node1"]

      output:java.lang.AssertionError: Expression: (x == map). Values: map =

      {node1=x}

      Attachments

        Activity

          People

            Unassigned Unassigned
            supertbone Philip
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: