Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-2864

elements should not allow both 'ref' and 'expression'

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 3.0 M1, 2.2.1
    • Component/s: None
    • Labels:

      Description

      The following configuration does not trigger a parsing error, but then can lead to confusing results since the expression is ignored and a method matches following the default rules as if only 'ref' is provided with no 'method' attribute:

      <int:service-activator input-channel="input" ref="someBean" expression="@someBean.someMethod(payload)" output-channel="output"/>
      

        Attachments

          Activity

            People

            Assignee:
            grussell Gary Russell
            Reporter:
            mark.fisher Mark Fisher
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: