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

Method call expression - Validate bean name for mistake

    XMLWordPrintableJSON

Details

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

    Description

      You may by mistake use bean: or ref: as prefix when using the method call expression.

      For example

      .to("bean:foo")
      

      vs

      method("foo")
      

      And this is not correct

      method("bean:foo")
      method("ref:foo")
      

      We could maybe in the latter case be lenient and allow using bean: and ref: as prefix as its used in endpoints etc so people may mistake and use those in the bean id in the method call expression

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: