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

Specify what happens with NotificationBroadcasterSupport if a filter or listener throws an exception

    Details

    • Subcomponent:
    • Resolved In Build:
      b45
    • CPU:
      generic
    • OS:
      generic

      Description

      The specification for NotificationBroadcasterSupport should say what happens when a NotificationFilter or a NotificationListener throws an exception. The proposed behaviour is that the exception is ignored (of course it can be logged), and notification distribution continues with other listeners in the list.

      For Errors, if the Error is thrown by a NotificationFilter then it is immediately propagated to the caller of sendNotification. If it is thrown by a NotificationListener then it is immediately propagated to the caller of sendNotification if notifications are being dispatched synchronously.

      The specification of NotificationBroadcaster should also suggest that other implementations of this interface copy the same behaviour.
      ###@###.### 2005-03-23 14:32:51 GMT
      ###@###.### 2005-05-10 08:25:03 GMT

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sjiang Shanliang Jiang (Inactive)
                Reporter:
                emcmanus Eamonn McManus
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: