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

Skip transaction/caching metadata retrieval for java.lang.Object methods

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 4.3.6, 5.0 M5
    • Fix Version/s: 4.3.7, 5.0 RC1
    • Component/s: Caching, Transaction
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      Our AbstractFallbackTransactionAttributeSource / AbstractFallbackCacheOperationSource always goes through the entire metadata retrieval phase for any method it encounters, building a cache key, checking the cache etc, and caching null placeholders for no annotation found. This is a waste for methods on java.lang.Object, both efficiency-wise and in terms of holding cache entries for those. Let's back out immediately for those methods, not even creating a cache key.

        Attachments

          Activity

            People

            Assignee:
            juergen.hoeller Juergen Hoeller
            Reporter:
            juergen.hoeller Juergen Hoeller
            Last updater:
            Spring Issues Spring Issues
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 1 week, 4 days ago