[ mx4j-Bugs-1049469 ] MBeanServer.getAttributes() does not follow spec.

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.java.mx4j.devel
Message-ID <[email protected]>
Bugs item #1049469, was opened at 2004-10-18 20:21
Message generated for change (Comment added) made by biorn_steedom
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=450647&aid=1049469&group_id=47745

Category: JMX implementation
Group: Release 2.0.1
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Mark Hale (markhale)
>Assigned to: Simone Bordet (biorn_steedom)
Summary: MBeanServer.getAttributes() does not follow spec.

Initial Comment:
MBeanServer.getAttributes(name, new String[0]) throws a
RuntimeOperationException.

From docs,
RuntimeOperationsException - Wrap a
java.lang.IllegalArgumentException: The object name in
parameter is null or attributes in parameter is null.

In accordance to the docs, Sun's reference
implementation does not throw an exception when passed
new String[0].

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

>Comment By: Simone Bordet (biorn_steedom)
Date: 2004-10-20 17:57

Message:
Logged In: YES 
user_id=128193

I am wondering what do you obtain in passing String[0] to
getAttributes(): it will always return an empty AttributeList.
Anyhow, for compatibility with RI, I have fixed this bug.
Thanks for reporting it.

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

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


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
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.