[ mx4j-Bugs-1016117 ] Signature for javax.management package

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.java.mx4j.devel
Message-ID <[email protected]>
Bugs item #1016117, was opened at 2004-08-25 16:26
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=1016117&group_id=47745

Category: JMX implementation
Group: Release 2.0.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Florent BENOIT (fbenoit)
Assigned to: Nobody/Anonymous (nobody)
Summary: Signature for javax.management package

Initial Comment:
	Hi,

Signature of JMX api (inside Mx4J) differs from the JSR
160 api
Mx4j is included in JOnAS (http://jonas.objectweb.org).

To be fully J2EE compliant, the signatures of
javax.management packages should be compliant too with
the J2EE specification.

For example :

For the class : javax.management.MBeanFeatureInfo

http://java.sun.com/j2ee/1.4/docs/api/javax/management/MBeanFeatureInfo.html
It should only implements Serializable but Mx4J class
implements both Serializable and Cloneable :
http://cvs.sourceforge.net/viewcvs.py/mx4j/mx4j/src/core/javax/management/MBeanFeatureInfo.java?rev=1.5&view=auto


javax.management.AttributeChangeNotificationFilter
should implements both NotificationFilter and
Serializable interfaces
http://java.sun.com/j2ee/1.4/docs/api/javax/management/AttributeChangeNotificationFilter.html
even if NotificationFilter class extends Serializable.


The classes
javax.management.modelmbean.ModelMBeanAttributeInfo,
javax.management.modelmbean.ModelMBeanConstructorInfo,
javax.management.modelmbean.ModelMBeanNotificationInfo
should implement javax.management.DescriptorAccess and
java.lang.Cloneable
http://java.sun.com/j2ee/1.4/docs/api/javax/management/modelmbean/ModelMBeanAttributeInfo.html
(even if superclass MBeanAttributeInfo already
implements Serializable).



javax.management.modelmbean.ModelMBeanInfo should not
implement Cloneable interface
http://cvs.sourceforge.net/viewcvs.py/mx4j/mx4j/src/core/javax/management/modelmbean/ModelMBeanInfo.java?rev=1.2&view=auto
http://java.sun.com/j2ee/1.4/docs/api/javax/management/modelmbean/ModelMBeanInfo.html
Also, it should not contain the method getConstructor()


javax.management.modelmbean.ModelMBeanInfoSupport
should implement both ModelMBeanInfo and Serializable
interface 
http://java.sun.com/j2ee/1.4/docs/api/javax/management/modelmbean/ModelMBeanInfoSupport.html

javax.management.modelmbean.RequiredModelMBean has a
wrong signature method for
removeAttributeChangeNotificationListener(javax.management.NotificationListener,java.lang.String)
public void
removeAttributeChangeNotificationListener(NotificationListener
listener, String attributeName) throws
RuntimeOperationsException, ListenerNotFoundException
should also throw MBeanException
http://java.sun.com/j2ee/1.4/docs/api/javax/management/modelmbean/RequiredModelMBean.html#removeAttributeChangeNotificationListener(javax.management.NotificationListener,%20java.lang.String)

I wonder if you could change these signatures, need a
patch or something else in order to be 100% compliant
with API.

Regards,

Florent.

JOnAS project.

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

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


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
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.