You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Josh Smith (Jira)" <ji...@apache.org> on 2020/11/04 16:38:00 UTC
[jira] [Created] (CAMEL-15810) Can't call overloaded method using
simple expression returning subtype of expected parameter
Josh Smith created CAMEL-15810:
----------------------------------
Summary: Can't call overloaded method using simple expression returning subtype of expected parameter
Key: CAMEL-15810
URL: https://issues.apache.org/jira/browse/CAMEL-15810
Project: Camel
Issue Type: Bug
Components: came-core
Affects Versions: 3.4.4
Reporter: Josh Smith
Attachments: camel-overloaded-method-inheritance-test.patch
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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)