[ mx4j-Bugs-1031848 ] DescriptorSupport doesn't provide a useful clone imp.
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.java.mx4j.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #1031848, was opened at 2004-09-21 22:24 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=1031848&group_id=47745 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Jon Seymour (jonseymour) Assigned to: Nobody/Anonymous (nobody) Summary: DescriptorSupport doesn't provide a useful clone imp. Initial Comment: The JMX specification defines the Descriptor.clone() method which "returns a new Descriptor instance which is a duplicate of the [receiving descriptor]." However, MX4J's implementation of clone doesn't produce a duplicate which is usefully different from the original object. In particular, mutations of the new field values of the cloned descriptor will change the field values of the source descriptor. A duplicate defined in this way isn't very useful - one may as well copy the original object reference instead of cloning it and so this can't be the intended meaning of the JMX specification. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=450647&aid=1031848&group_id=47745 ------------------------------------------------------- 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