Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-19435

camel-core - Remove String -> File converter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.0-RC1, 4.0.0
    • camel-core
    • None
    • Unknown

    Description

      @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.

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              davsclaus Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: