Done
Pinned fields
Click on the next to a field label to start pinning.
Details
Assignee
Tomasz TylendaTomasz TylendaReporter
Erwan SérandourErwan SérandourLabels
Components
Sprint
NoneFix versions
Priority
Normal
Details
Details
Assignee
Tomasz Tylenda
Tomasz TylendaReporter
Erwan Sérandour
Erwan SérandourLabels
Components
Sprint
None
Fix versions
Priority

Sentry
Sentry
Sentry
Created February 3, 2025 at 9:52 AM
Updated February 17, 2025 at 9:57 AM
Resolved February 12, 2025 at 4:32 PM
A method annotated with Spring's
@Async
,@Cacheable
or@Transactional
annotations will not work as expectedif invoked directly from within its class.
This is because Spring generates a proxy class with wrapper code to manage the method's asynchronicity (
@Async
), to cache methods invocations (@Cacheable
),or to handle the transaction (
@Transactional
).However, when called using
this
, the proxy instance is bypassed, and the method is invoked directlywithout the required wrapper code.