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

JDI: Event builder methods should handle ObjectCollectedException gracefully

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • core-svc
    • beta
    • generic
    • generic
    • Not verified

      When events are requested with suspend policy of SUSPEND_NONE, it is possible that objects and classes referenced in the event will be garbage collected in the target VM before the event is built on the front end. When that happens today, the EventQueue.remove() method aborts with an ObjectCollectedException. This is not very helpful because there is no information given about the event in question even though some information is available. A better approach would be to construct the event as much as possible. Once the event object is returned from EventSet.remove(), it is reasonable to throw ObjectCollectedException for any query that depends on a now-collected object. All other information is now available (e.g. the event type).

            rfield Robert Field (Inactive)
            ghirschsunw Gordon Hirsch (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: