mx4j/src/core/javax/management/relation RelationService.java,1.33,1.34

Jeremy Boynes <[email protected]> Sun, 13 Feb 2005 20:51:45 +0000
Newsgroups gmane.comp.java.mx4j.cvs
Message-ID <[email protected]>
Update of /cvsroot/mx4j/mx4j/src/core/javax/management/relation
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16373/src/core/javax/management/relation

Modified Files:
	RelationService.java 
Log Message:
Fix for [ 1121966 ] Should throw NoSuchMethodEx if Relation is not implemented

Index: RelationService.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/core/javax/management/relation/RelationService.java,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** RelationService.java	13 Feb 2005 20:42:47 -0000	1.33
--- RelationService.java	13 Feb 2005 20:51:43 -0000	1.34
***************
*** 692,696 ****
     }
  
!    private void checkValidRelation(ObjectName relationMBeanObjectName) throws IllegalArgumentException, InstanceNotFoundException
     {
        if (relationMBeanObjectName == null) throw new IllegalArgumentException("Cannot have a null Relation ObjectName");
--- 692,696 ----
     }
  
!    private void checkValidRelation(ObjectName relationMBeanObjectName) throws IllegalArgumentException, InstanceNotFoundException, NoSuchMethodException
     {
        if (relationMBeanObjectName == null) throw new IllegalArgumentException("Cannot have a null Relation ObjectName");
***************
*** 699,703 ****
        {
           logger.warn("An MBean which is to be added as a Relation must implement the Relation interface");
!          throw new InstanceNotFoundException("MBean does implement the Relation interface");
        }
     }
--- 699,703 ----
        {
           logger.warn("An MBean which is to be added as a Relation must implement the Relation interface");
!          throw new NoSuchMethodException("MBean does implement the Relation interface");
        }
     }



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click