JDK-6244863 : Specify what happens with NotificationBroadcasterSupport if a filter or listener throws an exception
  • Type: Enhancement
  • Component: core-svc
  • Sub-Component: javax.management
  • Affected Version: 6
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2005-03-23
  • Updated: 2017-05-16
  • Resolved: 2005-07-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b45Fixed
Related Reports
Relates :  
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

Comments
EVALUATION Current JDK implementation of NotificationBroadcasterSupport matches the proposed spec except that it does not ignore exceptions from filters. Spec should be updated as proposed. ###@###.### 2005-04-25 14:50:35 GMT
25-04-2005