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

Method call expression - Validate bean name for mistake

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.17.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: