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

Remove Serializable from TransactionInterceptor and TransactionManager

    XMLWordPrintable

    Details

    • Type: Pruning
    • Status: Resolved
    • Priority: Minor
    • Resolution: Works as Designed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Transaction
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      Java serialization is an anti-pattern now, most TransactionManagers rely on DataSource which is not serializable, and neither define `serialVersionUID` nor `readObject()` will cause potential exception, I think is time to remove java.io.Serializable from TransactionInterceptor and *TransactionManager. Any one can explain what is the purpose to make them serializable?

        Attachments

          Activity

            People

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

              Dates

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