Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-13654

Consistent method selection for listeners and endpoint mappings


    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 4.2.2
    • Fix Version/s: 4.2.3
    • Component/s: None
    • Labels:
    • Last commented by a User:


      Historically, we have several meant-to-be analogous method selection algorithms across the core framework: e.g. for request mappings, message mappings, JMS listeners, event listeners. Since those do not share a common algorithm implementation, they have different treatment of corner cases, in particular in case of a proxy vs target class scenario.

      Most importantly, for common handler methods, we perform our expensive findAnnotation lookup twice since we're not reusing the initial result that triggered the inclusion in the candidate method set. Aside from consistency in the codebase, this part is primarily about startup performance for applications with many registered components of different types.

      Along with SPR-13576 and SPR-13650, this should get addressed for 4.2.3 as well.

        Issue Links


          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open In Progress In Progress
          3m 22s 1 Juergen Hoeller 07/Nov/15 3:35 PM
          In Progress In Progress Resolved Resolved
          1d 20h 59m 1 Juergen Hoeller 09/Nov/15 12:35 PM
          Resolved Resolved Closed Closed
          6d 4h 28m 1 St├ęphane Nicoll 15/Nov/15 5:03 PM


            • Assignee:
              juergen.hoeller Juergen Hoeller
              juergen.hoeller Juergen Hoeller
              Last updater:
              Juergen Hoeller
            • Votes:
              0 Vote for this issue
              2 Start watching this issue


              • Created:
                Days since last comment:
                2 years, 18 weeks, 5 days ago