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

ObservableMap doesn't fire Property Change Event upon removal

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.6
    • 1.6-beta-2
    • None
    • None

    Description

      Taking the example from doc

      def map = [one: 1, two: 2] as ObservableMap
      map.addPropertyChangeListener({evt -> println "${evt.propertyName}: ${evt.oldValue} -> ${evt.newValue}"} as PropertyChangeListener)

      map.remove("one")

      nothing is printed. Other operations like put, replace element do work without problem.

      map.clear() also do nth. as putAll() does fire events, i think clear() should do so.

      Attachments

        Activity

          People

            aalmiray Andres Almiray
            mingfai Mingfai Ma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: