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

TableModelFactory disposal removeProppertyChangeListener

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.6
    • 1.7.0
    • Swing
    • None
    • Windows

    Description

      In TableModelFactory.onNodeCompleted a listener is added for property 'model'.
      The removal of this listener is installed as disposalClosure, but removing under property name 'table'.

      As far as i understand the the method SwingBuilder.dispose() is never invoked for running the dispocalClosures.

      Even if the disposalClosure is run the added listener under prop 'model' is not removed, as the removal tries to
      remove the listener using prop 'table'.

      Calling SwingBuilder.dispose() explicitly gives me a NPE.

      Removing the listener via:
      def pcls = table.getPropertyChangeListeners('model') as List
      table.removePropertyChangeListener('model', pcls[0])
      works fine

      Attachments

        Activity

          People

            paulk Paul King
            berni_huber Bernhard Huber
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: