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

Unserializable notifications not handled well

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.0
    • core-svc
    • None

      The Notification class is serializable, and hence any defined subclasses are too, unless they go out of their way not to be. But a notification may include referenced objects that are not serializable. In this case our current code will drop the notification instead of sending it to a remote client, which is acceptable, but may also drop other notifications that arrived at the same time, even if they were serializable. That's not good.

      We need to code a unit test for this and revisit the notification-handling code. For JMXMP, the class ServerIntermediary contains a REVISIT comment indicating where it could be improved. For RMI, it is less clear how to resolve this problem.

            emcmanus Eamonn McManus
            emcmanus Eamonn McManus
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: