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

annotation type converter discover doesn't cater for Exchange is optional parameter

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.5.0
    • 1.6.0, 2.0-M1
    • camel-stream
    • None

    Description

      [pache.camel.spring.Main.main()] DefaultTypeConverter           WARN  Overriding type converter from: StaticMethodTypeConverter: public static java.io.InputStream org.apache.camel.converter.IOConverter.toInputStream(java.lang.String) to: StaticMethodTypeConverter: public static java.io.InputStream org.apache.camel.converter.IOConverter.toInputStream(java.lang.String,org.apache.camel.Exchange)
      [pache.camel.spring.Main.main()] DefaultTypeConverter           WARN  Overriding type converter from: StaticMethodTypeConverter: public static java.io.InputStream org.apache.camel.converter.IOConverter.toInputStream(java.io.BufferedReader,org.apache.camel.Exchange) throws java.io.IOException to: StaticMethodTypeConverter: public static java.io.InputStream org.apache.camel.converter.IOConverter.toInputStream(java.io.BufferedReader) throws java.io.IOException
      

      The WARN above is the same type converter where we have an optional Exchange parameter.

      We should keep the Exchange version if we only keep one in the registry.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: