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

Transactional annotation on interface method doesn't work with cglib

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.2 final
    • Fix Version/s: None
    • Component/s: Core:AOP
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      It appears that if you add an @Transaction annotation to the declaration of a method in an interface and use CGLIB proxies, then the transactional advice is not honoured. This works, however, if you use JDK proxies instead of CGLIB, or if you put the annotation on the actual implementation of the method.

      Also see http://forum.springframework.org/viewtopic.php?p=21043#21059

        Attachments

          Activity

            People

            Assignee:
            juergen.hoeller Juergen Hoeller
            Reporter:
            charlesb Charles Blaxland
            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:
              2 years, 45 weeks, 4 days ago