JDK-6495505 : MBeans tab: jconsole misinterprets java.lang.Void on Open MBean operations
  • Type: Bug
  • Component: tools
  • Sub-Component: jconsole
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2006-11-20
  • Updated: 2011-03-08
  • Resolved: 2011-03-08
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 JDK 7
6u4Fixed 7 b05Fixed
Description
FULL PRODUCT VERSION :
java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [version 5.1.2600]

A DESCRIPTION OF THE PROBLEM :
For a non-Open MBean, an operation with a void return type results in an "Operation Completed Successfully" message. For an Open MBean, where the return type is specified as SimpleType.VOID, invocation results in a "Operation returned null" message.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Create an Open MBean with a void operation. Register with a the MBeanServer. Start jconsole, navigate to the MBean operation, invoke it.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
"Operation completed successfully" message (as per non-Open MBeans)
ACTUAL -
"Operation returned null" message (as per non-void operations that return null)

REPRODUCIBILITY :
This bug can be reproduced always.

Comments
EVALUATION Display "Operation completed successfully" for both "void" and "java.lang.Void" return values.
21-11-2006