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

IndexedPropertyChangeEvent/IndexedPropertyChangeSupport missing

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.2.2
    • Fix Version/s: 5.0
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      tiger
    • CPU:
      generic
    • OS:
      generic

      Description



      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)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: