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

putAt and put behave different on Maps

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.0
    • 1.6.8, 1.7.1, 1.8-beta-1
    • None
    • None

    Description

      Map m = [:]
      //this is ok as LinkedHashMap supports null as key and value
      m.put(null, null)

      //this will throw an exception
      m[null] = null

      Attachments

        1. v17x_DGM_New_Map_Method_Patch.txt
          1 kB
          Roshan Dawrani
        2. v17x_MC_setProperty_Patch.txt
          1 kB
          Roshan Dawrani
        3. v17x_Method_Selection_Patch.txt
          1 kB
          Roshan Dawrani

        Activity

          People

            roshandawrani Roshan Dawrani
            kmuntau Kristian Muntau
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: