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

IndexedPropertyChangeEvent/IndexedPropertyChangeSupport missing

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 5.0
    • 1.2.2
    • client-libs
    • tiger
    • generic
    • generic



      Name: jk109818 Date: 07/13/2000


      java version "1.2.2"
      Classic VM (build 1.2.2-L, green threads, nojit)


      Although the index of a changed element of an indexed property is known to
      setter methods, there currently is no standard way to propagate this information
      to listening clients, that is, classes IndexedPropertyChangeEvent and
      IndexedPropertyChangeSupport are missing. A listener has to iterate over the
      whole property to identify the element that has actually changed. This is
      inconvenient in general, and unacceptable if the number of property elements is
      large.

      Feel free to use the implementation found in the workaround section. The method
      signatures already take into account that non-int (ie, key) indexed properties
      maybe are allowed in future Beans specifications. See Beans 1.01 spec (Section
      7.2, "Indexed Properties", pages 40/41): "Property indexes must be Java
      "int"s. We may relax this restriction in the future to allow other index types."
      Size of compiled class files: 1792 bytes (IndexedPropertyChangeSupport) and
      1100 bytes (IndexedPropertyChangeEvent).
      (Review ID: 101528)
      ======================================================================

            mdavidsosunw Mark Davidson (Inactive)
            jkimsunw Jeffrey Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: