United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6495505 MBeans tab: jconsole misinterprets java.lang.Void on Open MBean operations
JDK-6495505 : MBeans tab: jconsole misinterprets java.lang.Void on Open MBean operations

Details
Type:
Bug
Submit Date:
2006-11-20
Status:
Closed
Updated Date:
2011-03-08
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
tools
OS:
windows_xp
Sub-Component:
jconsole
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:

Related Reports
Backport:

Sub Tasks

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.
                                     
2006-11-21



Hardware and Software, Engineered to Work Together