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

The reflection method invocation doesn't scan interface methods on advised Proxy classes

    XMLWordPrintable

    Details

    • Type: Defect
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 4.1.6
    • Fix Version/s: 4.2.GA
    • Component/s: Core
    • Labels:

      Description

      The reference link demonstrate a Spring JPA Repository use case, when the real object to perform Service Activator operation is SimpleJpaRepository instance which is just adviced by the @Repository interface.

      The MessagingMethodInvokerHelper does this logic before appropriate method scanning:

      if (AopUtils.isAopProxy(targetObject)) {
      			targetClass = AopUtils.getTargetClass(targetObject);
      

      So, we miss there all those our interfaces to deal with.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: