Skip to content

@Transactional should fail in @PostConstruct if AspectJ transaction aspect not initialized yet #27002

Open
@cdalexndr

Description

Using Aspectj mode with runtime aspectj weaver.

Inside a @PostConstruct, calling a method with @Transactional doesn't start a transaction.
The transactional aspect forwards call to the method, but no transaction is started. This is an invalid behavior, I was expecting an exception.

Sample repo: https://github.com/cdalexndr/spring-boot-issue-26710

Spring Boot 2.4.4

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    in: dataIssues in data modules (jdbc, orm, oxm, tx)type: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions