Affects Version/s: 1.1
Fix Version/s: 2.0
Operating System: All
If a model MBean has an overloaded operation (an operation with two or more
signatures), only one of them can be successfully invoked at runtime. Invoking
others will throw "Wrong number of parameters" exception.
Here's what I've found out about the causing of the problem:
Class org.apache.commons.modeler.BaseModelMBean internally stores and caches
operations in a hashmap. The key to the hashmap is the operation name.
Therefore, if an operation has multiple signatures, only one of them (the first
one loaded) is stored in the hashmap. Invoking the same method with a different
signature will cause "wrong number of parameters" exception.