Camel
  1. Camel
  2. CAMEL-5154

Simple language - OGNL - Invoking explicit method with no parameters should not cause ambiguous exception for overloaded methods

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9.1
    • Fix Version/s: 2.9.2, 2.10.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      If you want to invoke a method on a bean which is overloaded, such as a String with toUpperCase having

      • toUpperCase()
      • toUpperCase(Locale)

      Then if you specify this in a simple ognl expression as follows

      ${body.toUpperCase()}
      

      Then Camel bean component should pick the no-parameter method as specified.

        Activity

          People

          • Assignee:
            Claus Ibsen
            Reporter:
            Claus Ibsen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development