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

arguments of <bean method> ignored if syntax error in method call

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.17.1
    • 2.18.0
    • camel-core
    • None
    • Unknown

    Description

      I have route definition with following BeanProcessor call:

      <bean ref="service" method="method(${header.foo},${header.hoo}))" />
      

      Note syntax error at the end - one more right parenthesis.
      Parameters foo and hoo are present in exchange headers.

      In Camel 2.17.1, method is invoked with (null,null) because the parameters are not recognized in ObjectHelper.betweenOuterPair method.

      In Camel 2.14.1 (from which we migrated recently), extra parenthesis is ignored and parameters are parsed correctly in ObjectHelper.between method.

      I will certainly fix my syntax error, though I would really appreciate either 2.14.1-behavior or rather fail fast just on route construction during Spring webapp initialization.

      Thanks!

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            tomas.zalusky Tomáš Záluský
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: