United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6244863 : Specify what happens with NotificationBroadcasterSupport if a filter or listener throws an exception

Details
Type:
Enhancement
Submit Date:
2005-03-23
Status:
Resolved
Updated Date:
2010-07-29
Project Name:
JDK
Resolved Date:
2005-07-22
Component:
core-svc
OS:
generic
Sub-Component:
javax.management
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports
Relates:

Sub Tasks

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
                                     
2005-04-25



Hardware and Software, Engineered to Work Together