-
Bug
-
Resolution: Fixed
-
P4
-
5.0
-
b05
-
x86
-
windows_xp
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2149784 | 6u4 | Luis-Miguel Alventosa | P4 | Resolved | Fixed | b01 |
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.
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.
- backported by
-
JDK-2149784 MBeans tab: jconsole misinterprets java.lang.Void on Open MBean operations
-
- Resolved
-