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

String to short type conversion fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 4.4.0
    • camel-core
    • None
    • Unknown

    Description

      String to short type conversion fails with:

      NoTypeConversionAvailable No type converter available to convert from type: java.lang.String to the required type: short
      

      to reproduce it just test:

      assertEquals(Short.parseShort("1"), context.getTypeConverter().mandatoryConvertTo(short.class, "1"));
      

      Attachments

        Issue Links

          Activity

            People

              valdar Andrea Tarocchi
              valdar Andrea Tarocchi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: