United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-5053367 RelationService.addRelationType spec should reject null relation type name
JDK-5053367 : RelationService.addRelationType spec should reject null relation type name

Details
Type:
Bug
Submit Date:
2004-05-26
Status:
Closed
Updated Date:
2006-06-15
Project Name:
JDK
Resolved Date:
2006-02-04
Component:
core-svc
OS:
generic
Sub-Component:
javax.management
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports

Sub Tasks

Description
RelationService.addRelationType (and RelationServiceMBean.addRelationType) should be explicitly specified to throw IllegalArgumentException if the RelationType argument returns null from its getRelationTypeName().  The other RelationService methods that take a relation type name are all spec'd to reject a null name.  Thus if addRelationType allows one, you end up with a RelationType that you can do nothing with.  In particular, you can't even remove it again.

                                    

Comments
EVALUATION

Trivial spec change.  Should be done in next version.
###@###.### 2004-05-26
                                     
2004-05-26
PUBLIC COMMENTS

RelationService.addRelationType (and RelationServiceMBean.addRelationType) should be explicitly specified to throw IllegalArgumentException if the RelationType argument returns null from its getRelationTypeName().
                                     
2004-09-01
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
mustang


                                     
2004-09-01



Hardware and Software, Engineered to Work Together