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 2024/10/29 19:58:00 UTC

[jira] [Comment Edited] (CAMEL-21401) camel-core - Custom bean in DSL using factory method should avoid ClassCastException

    [ https://issues.apache.org/jira/browse/CAMEL-21401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17893934#comment-17893934 ] 

Claus Ibsen edited comment on CAMEL-21401 at 10/29/24 7:57 PM:
---------------------------------------------------------------

TODO: backport fix to 4.8.x *DONE*


was (Author: davsclaus):
TODO: backport fix to 4.8.x

> camel-core - Custom bean in DSL using factory method should avoid ClassCastException
> ------------------------------------------------------------------------------------
>
>                 Key: CAMEL-21401
>                 URL: https://issues.apache.org/jira/browse/CAMEL-21401
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.8.2, 4.9.0
>
>
> This can happen if custom beans are using factory-method and has not set a factory-class and uses the type name for that; which leads to ClassCastException as the result of the factory method can be any kind of Object.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)