JDI lacks ability to watch an instance's fields

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 1.3.0
    • Component/s: core-svc
    • generic
    • generic



      Name: tb29552 Date: 04/20/2001


      java version "1.3.0_02"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_02)
      Java HotSpot(TM) Client VM (build 1.3.0_02, mixed mode)

      This is a problem with JDI functionality.

      EventRequestManager is only able to create WatchpointRequest's (and all of its
      children classes) on ReferenceType's, and not ObjectReference's.

      For instance, the spec for EventRequestManager contains the following method:
      AccessWatchpointRequest createAccessWatchpointRequest(Field field)

      The problem is, AccessWatchpointRequest watches accesses to field made by any
      instance of the class containing field. This makes it impossible to track the
      changes to field which are made by one particular instance, since the
      AccessWatchpointRequest is watching *all* instances of the class containing
      field.
      (Review ID: 121045)
      ======================================================================

            Assignee:
            Robert Field (Inactive)
            Reporter:
            Tim Bell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: