mx4j/src/core/javax/management/modelmbean DescriptorSupport.java,1.26,1.27

Simone Bordet <[email protected]> Tue, 05 Oct 2004 13:58:31 +0000
Newsgroups gmane.comp.java.mx4j.cvs
Message-ID <[email protected]>
Update of /cvsroot/mx4j/mx4j/src/core/javax/management/modelmbean
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5227/src/core/javax/management/modelmbean

Modified Files:
	DescriptorSupport.java 
Log Message:
Fix for bug #1031848: clone() was not properly implemented

Index: DescriptorSupport.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/core/javax/management/modelmbean/DescriptorSupport.java,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** DescriptorSupport.java	7 Sep 2004 15:00:13 -0000	1.26
--- DescriptorSupport.java	5 Oct 2004 13:58:29 -0000	1.27
***************
*** 113,124 ****
     public Object clone() throws RuntimeOperationsException
     {
!       try
!       {
!          return super.clone();
!       }
!       catch (CloneNotSupportedException ignored)
!       {
!          return null;
!       }
     }
  
--- 113,117 ----
     public Object clone() throws RuntimeOperationsException
     {
!       return new DescriptorSupport(this);
     }
  



-------------------------------------------------------
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