Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-1677

Incorrect handling of overloaded methods in ServiceMBeanDelegate

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.1.2
    • 1.0.0-Beta11
    • core
    • None

      When a @Service is exposed through a @Management interface and the management interface has overloaded methods, then there are chances of invoking an incorrect method. See the forum reference thread for details.

      The ServiceMBeanDelegate maintains a Map of signature --> Method, but looks it up incorrectly

      private Method getOperation(String actionName, String[] signature) throws ReflectionException
      {
      String opSig = getOperationSignature(actionName, signature);
      Method operation = operations.get(actionName); // Incorrect lookup : should be looking up using opSig

            jaikiran Jaikiran Pai (Inactive)
            jaikiran Jaikiran Pai (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: