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

SpEL PropertyAccessor Order

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0.6, 4.1.1
    • Fix Version/s: 5.2 Backlog
    • Component/s: Core
    • Labels:
      None

      Description

      Currently, the SpEL property accessors are added in the following sequence:

      Map, <userPAs>, Reflective

      This causes expressions such as payload.class.name to fail if the JsonPropertyAccessor is included because it is selected before the reflective accessor.

      The workaround is to use payload.getClass().name but we need a general solution.

      Possibilities:

      • Have the Json PA only work with nodes (not preferred).
      • Provide the user some control over PA order
      • Always put the Json PA after the Reflective PA - we may need to split it into two - one for String, one for Json node.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              grussell Gary Russell
              Reporter:
              grussell Gary Russell
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: