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

TransactionTemplate inherits equals()/hashCode() from DefaultTransactionDefinition

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 4.3.14, 5.0.4
    • Fix Version/s: 4.3.15, 5.0.5
    • Component/s: Transaction
    • Labels:
      None

      Description

      Two TransactionTemplate instances are considered equal purely based on their DefaultTransactionDefinition properties, without taking the actual configured PlatformTransactionManager into account.

      Cause: the TransactionTemplate class inherits equals() and hashCode() from DefaultTransactionDefinition. I would assume the actual PlatformTransactionManager should also be taken into account.

        Attachments

          Activity

            People

            Assignee:
            juergen.hoeller Juergen Hoeller
            Reporter:
            arne.vandamme Arne Vandamme
            Last updater:
            Spring Issues Spring Issues
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 24 weeks, 5 days ago