java.jmx

java.jmx: Invoke doesn't work on methods with different parameter types.

Details

  • Type: Defect Defect
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Patch:
    Code
  • Approval:
    Accepted

Description

The jmx library currently doesn't work on mbean methods that have multiple parameters with different types. This is due to the fact that into-array is used without specifying an array type. If the parameters are of different types, into-array will attempt to create an array with the type of the first parameter and fail when the second parameter is not the same.

We should just specify the array type as Object, since that is what the invoke method requires anyway.

http://download.oracle.com/javase/6/docs/api/javax/management/MBeanServerConnection.html#invoke(javax.management.ObjectName, java.lang.String, java.lang.Object[], java.lang.String[])

Activity

Nick Bailey made changes -
Field Original Value New Value
Approval Test
Nick Bailey made changes -
Assignee Nick Bailey [ nickmbailey ]
Nick Bailey made changes -
Status Open [ 1 ] In Progress [ 3 ]
Nick Bailey made changes -
Assignee Nick Bailey [ nickmbailey ]
Nick Bailey made changes -
Project Clojure-Contrib [ 10012 ] java.jmx [ 10060 ]
Key CONTRIB-115 JMX-2
Hide
Nick Bailey added a comment -

Committed.

Show
Nick Bailey added a comment - Committed.
Nick Bailey made changes -
Resolution Completed [ 1 ]
Approval Test [ 10013 ] Accepted [ 10005 ]
Assignee Nick Bailey [ nickmbailey ]
Status In Progress [ 3 ] Resolved [ 5 ]

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: