The code is: 
public int hashCode() 
{ 
int result; 
result = objectName.hashCode(); 
result = 29 * result + handback.hashCode(); 
result = 29 * result + filter.hashCode(); 
return result; 
} 

This code requires that the filter be non-null, or a NullPointerException will be 
raised. 

If I have an MBeanLocator, then if I use the following idiom: 

locator.getServer().addNotificationListener(locator.getObjectName(), aListener, null, 
null); 

I will get a NullPointerException if the MBeanServer is actually remote and the 
implementation talks to it through a dynamic proxy, but it will work fine if the 
MBeanServer is local and the implementation talks to it directly. This clearly 
violates location transparency and disagrees with the interface for a local MBean, 
where null filters are explicitly allowed. 

I would appreciate a fix, as it will be awhile before I can move to 4.0. Thanks. 



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3849465#3849465

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3849465


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to