Spring Framework
  1. Spring Framework
  2. SPR-6625

TransactionSynchronizationUtils.unwrapResourceIfNecessary() overwrites InfrastructureProxy.getWrappedObject() results

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 3.0 GA
    • Fix Version/s: 3.0.1
    • Component/s: Transaction
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      The call to ScopedProxyUnwrapper.unwrapIfNecessary() within TransactionSynchronizationUtils.unwrapResourceIfNecessary() takes 'resource' as the input, rather than 'resourceRef', which causes the InfrastructureProxy's changes to be lost.

        Issue Links

          Activity

          Hide
          Juergen Hoeller added a comment -

          Ouch - that was an accident when refactoring the AOP check into an optional dependency. Fixed for 3.0.1.

          Juergen

          Show
          Juergen Hoeller added a comment - Ouch - that was an accident when refactoring the AOP check into an optional dependency. Fixed for 3.0.1. Juergen
          Hide
          Michael Pilquist added a comment -

          FYI, I believe this issue causes problems with using JPA in an OSGi environment, where different bundles have different infrastructure proxy instances.

          Show
          Michael Pilquist added a comment - FYI, I believe this issue causes problems with using JPA in an OSGi environment, where different bundles have different infrastructure proxy instances.

            People

            • Assignee:
              Juergen Hoeller
              Reporter:
              Craig Muchinsky
              Last updater:
              Trevor Marshall
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 14 weeks, 2 days ago