java.jmx

Throw exception when overloaded operation is ambiguous

Details

  • Type: Enhancement Enhancement
  • Status: Reopened Reopened
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    clojure.java.jmx 0.2.0

Description

The clojure.java.jmx/invoke function invokes the first method it finds with a matching name, even if that method's signature does not match the type or number of arguments passed to invoke.

The correct usage is to call invoke-signature, explicitly specifying which method signature to call.

invoke could theoretically examine its arguments and guess the correct signature to call. But without that, it is better to have it throw an exception when the method overloading is ambiguous, instead of just taking the first signature.

Activity

Stuart Sierra made changes -
Field Original Value New Value
Environment clojure.java.jmx 0.2.0
Oracle JDK 1.7
clojure.java.jmx 0.2.0
Stuart Sierra made changes -
Resolution Completed [ 1 ]
Status Open [ 1 ] Closed [ 6 ]
Stuart Sierra made changes -
Status Closed [ 6 ] Reopened [ 4 ]
Resolution Completed [ 1 ]

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated: