Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-5154

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.9.1
    • 2.9.2, 2.10.0
    • camel-core
    • None
    • 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.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: