Throw exception when overloaded operation is ambiguous


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


The 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.


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


Vote (0)
Watch (1)


  • Created: