JDK-6362002 : OpenMBeanOperationInfoSupport javadoc is contradictory about UNKNOWN impact
  • Type: Bug
  • Component: core-svc
  • Sub-Component: javax.management
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2005-12-12
  • Updated: 2010-07-29
  • Resolved: 2006-01-07
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 b67Fixed
Related Reports
Relates :  
Description
As of b63, the fix done in the OpenMBeanOperationInfoSupport javadoc for the 6320104 is not correct.
The new javadoc for the 2 constructors contains:

[...]
impact - can be only one of ACTION, ACTION_INFO or INFO.
[...]
IllegalArgumentException - if name or description are null or empty string, or returnOpenType is null, or impact is not one of ACTION, ACTION_INFO, INFO, or UNKNOWN.
[...]

The first sentence continues to explicitely forbid UNKNOWN as a valid impact. Only the condition when IAE is thrown considers UNKNOWN as valid.
The two sentences contradict each other.

Comments
EVALUATION Obviously the @param should be updated appropriately.
20-12-2005