Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4776306

property change-notification should lazily construct copies of properties

XMLWordPrintable

      This bug is related to 4776294 (java.awt.Component provides no support for
      lazy property change-notification).

      Sub-classes of java.awt.Component (including Swing) always call
      firePropertyChange even if there are no listeners because there
      is no way for these classses to know this. However, supporting change
      notification is expensive because the values passed in the
      notification are often cloned or duplicated, even if they
      are composite values or containers (arrays, vectors, hashtables).
      It should be possible for sub-classes of java.awt.Component to
      efficiently determine if property change-notification is necessary
      _before_ constructing these duplicate values.
      Accessible property changes could also be lazy.

            malenkov Sergey Malenkov (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: