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

Reconsider expression parsing logic in the MessagePublishingInterceptor

    XMLWordPrintable

    Details

    • Type: Defect
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 4.3.14
    • Fix Version/s: 5.1 M1, 5.0.4
    • Component/s: Core
    • Labels:

      Description

      The code:

      String payloadExpressionString = this.metadataSource.getPayloadExpression(method);
      if (!StringUtils.hasText(payloadExpressionString)) {
      	payloadExpressionString = "#" + PublisherMetadataSource.RETURN_VALUE_VARIABLE_NAME;
      }
      Expression expression = this.parser.parseExpression(payloadExpressionString);
      Object result = expression.getValue(context);
      

      Is too aggressive and should at least cache already parsed Expression s.

        Attachments

          Activity

            People

            Assignee:
            abilan Artem Bilan
            Reporter:
            abilan Artem Bilan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: