You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2015/12/01 13:03:10 UTC

[jira] [Created] (CAMEL-9380) Method call expression - Validate bean name for mistake

Claus Ibsen created CAMEL-9380:
----------------------------------

             Summary: Method call expression - Validate bean name for mistake
                 Key: CAMEL-9380
                 URL: https://issues.apache.org/jira/browse/CAMEL-9380
             Project: Camel
          Issue Type: Improvement
          Components: camel-core
            Reporter: Claus Ibsen
            Priority: Minor
             Fix For: 2.17.0


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


For example 
{code}
.to("bean:foo")
{code}
vs

{code}
method("foo")
{code}

And this is not correct
{code}
method("bean:foo")
method("ref:foo")
{code}

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




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)