You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2020/11/05 11:30:00 UTC
[jira] [Resolved] (CAMEL-15810) Can't call overloaded method using
simple expression returning subtype of expected parameter
[ https://issues.apache.org/jira/browse/CAMEL-15810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-15810.
---------------------------------
Resolution: Fixed
Thanks for reporting and for the test case
> 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
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 3.7.0
>
> 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)