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 2023/06/12 20:09:00 UTC
[jira] [Resolved] (CAMEL-19435) camel-core - Remove String -> File converter
[ https://issues.apache.org/jira/browse/CAMEL-19435?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-19435.
---------------------------------
Resolution: Fixed
> camel-core - Remove String -> File converter
> --------------------------------------------
>
> Key: CAMEL-19435
> URL: https://issues.apache.org/jira/browse/CAMEL-19435
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 4.0-RC1, 4.0
>
>
> @Converter(order = 5)
> public static File toFile(String name) {
> return new File(name);
> }
> This makes less sense as this can mistakenly led users to do
> File f = message.getBody(File.class);
> where the body is String based, such as payload. And you dont want that as a file name.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)