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/02/09 05:46:00 UTC

[jira] [Resolved] (CAMEL-20399) String to short type conversion fails

     [ https://issues.apache.org/jira/browse/CAMEL-20399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-20399.
---------------------------------
    Resolution: Fixed

> String to short type conversion fails
> -------------------------------------
>
>                 Key: CAMEL-20399
>                 URL: https://issues.apache.org/jira/browse/CAMEL-20399
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>            Reporter: Andrea Tarocchi
>            Assignee: Andrea Tarocchi
>            Priority: Minor
>             Fix For: 4.4.0
>
>
> String to short type conversion fails with:
> {code:java}
> NoTypeConversionAvailable No type converter available to convert from type: java.lang.String to the required type: short
> {code}
> to reproduce it just test:
> {code:java}
> assertEquals(Short.parseShort("1"), context.getTypeConverter().mandatoryConvertTo(short.class, "1"));
> {code}



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