JDK-5053367 : RelationService.addRelationType spec should reject null relation type name
  • Type: Bug
  • Component: core-svc
  • Sub-Component: javax.management
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2004-05-26
  • Updated: 2017-05-16
  • Resolved: 2006-02-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b71Fixed
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
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mustang
01-09-2004

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

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