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

Can't call overloaded method using simple expression returning subtype of expected parameter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.4.4
    • 3.7.0
    • came-core
    • None
    • Unknown

    Description

      When calling an overloaded method, Camel has to evaluate the parameter types to determine which is the correct method to call. For a parameter that is a simple expression, Camel will evaluate the type, but doesn't recognize it can call a method with a subtype of the expected type.

      I've included a patch with a test to demonstrate.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            joshua.smith Josh Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: