mx4j/src/core/javax/management/relation RelationService.java,1.29,1.30

Jeremy Boynes <[email protected]> Sun, 13 Feb 2005 20:04:46 +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-serv27647/src/core/javax/management/relation

Modified Files:
	RelationService.java 
Log Message:
Fix for [ 1121942 ] Duplicate RelationType should throw InvalidRelationType

Index: RelationService.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/core/javax/management/relation/RelationService.java,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** RelationService.java	13 Nov 2004 16:38:49 -0000	1.29
--- RelationService.java	13 Feb 2005 20:04:42 -0000	1.30
***************
*** 135,139 ****
  
     /* Adds a relationTypeName as the key to a Map and the RelationType as the value */
!    private void addRelationTypeToMap(String relationTypeName, RelationType relationType)
     {
        Logger logger = getLogger();
--- 135,139 ----
  
     /* Adds a relationTypeName as the key to a Map and the RelationType as the value */
!    private void addRelationTypeToMap(String relationTypeName, RelationType relationType) throws InvalidRelationTypeException
     {
        Logger logger = getLogger();
***************
*** 144,148 ****
           {
              logger.warn("Cannot addRelationType as a relationType of the same name: " + relationTypeName + " already exists in the RelationService");
!             throw new IllegalArgumentException("RelationType with name: " + relationTypeName + " already exists in the RelationService");
           }
           // set the RelationTypeSupport internal flag to true indicating that the relationType has been declared in the relation service
--- 144,148 ----
           {
              logger.warn("Cannot addRelationType as a relationType of the same name: " + relationTypeName + " already exists in the RelationService");
!             throw new InvalidRelationTypeException("RelationType with name: " + relationTypeName + " already exists in the RelationService");
           }
           // set the RelationTypeSupport internal flag to true indicating that the relationType has been declared in the relation service



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