[ mx4j-Bugs-893581 ] RelationService: possible method call param sequence error

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.java.mx4j.devel
Message-ID <[email protected]>
Bugs item #893581, was opened at 2004-02-09 13:15
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=450647&aid=893581&group_id=47745

Category: JMX implementation
Group: Release 2.0.0
Status: Open
Resolution: None
Priority: 5
Submitted By: sinclair bain (slbain)
Assigned to: Nobody/Anonymous (nobody)
Summary: RelationService: possible method call param sequence error

Initial Comment:
Release: mx4j 2.0 Beta 1 source

Class: javax.management.relation.RelationService
Method: public void sendRoleUpdateNotification(...) 
Location: approx line #954

In this method there is a call to the 
javax.management.relation.RelationNotification 
constructor (the constructor used for updating)
i.e.
public RelationNotification(String updateType,
                                 Object source, 
                                 long sequenceNumber, 
                                 long timestamp, 
                                 String message,
                                 String relationId, 
                                 String relationTypeName,
                               ObjectName relationObjectName,
                                 String roleName, 
                                 List newRoleValues, 
                                 List oldRoleValues) throws ...

however the call switches the last two arguments to 
the constructor call 

i.e. the <newRoleValues> and the <oldRoleValues>.

So the notification new values are the old values and 
vice versa.

Looks like these need to be switched according to the 
api documentation.


sinclair bain
panacya inc.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=450647&aid=893581&group_id=47745


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.