Skip to main content

jconsole Open MBean operations and java.lang.Void

No replies
Joined: 2006-07-05

Recently changed all my MBeans to Open MBeans. So now the "return type"s of operations that are void methods are no longer void, but SimpleType.VOID, which describes java.lang.Void. The ugly in jconsole is that, before this change, the "invoke" of such an operation resulted in a message "Operation completed successfully", where as now I get the very ugly "Operation returned null". Presumably this is jconsole interpreting "void" "correctly" but lumping java.lang.Void with non-void return types.