Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-222

AbstractAnnotationMethodEndpointMapping doesn't allow proxies

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.2
    • Component/s: Core
    • Labels:
      None

      Description

      The AbstractAnnotationMethodEndpointMapping looks up annotated method endpoints in the BeanPostProcessor::postProcessBeforeInitialization method. It then holds a reference to the bean inside of a "MethodEndpoint" instance.

      The problem is that proxies get created AFTER the postProcessBeforeInitialization method. The lifecycle goes...

      BeanPostProcessor::postProcessBeforeInitialization
      AbstractAutoProxyCreator::createProxy
      BeanPostProcessor::postProcessAfterInitialization

      The AbstractAnnotationMethodEndpointMapping should implement postProcessAfterInitialization, not postProcessBeforeInitialization

        Attachments

          Activity

            People

            • Assignee:
              arjen.poutsma Arjen Poutsma
              Reporter:
              raykrueger Ray Krueger
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: