Skip to content

@EnableTransactionManagement and co should also get detected on superclasses [SPR-10864] #15491

@spring-projects-issues

Description

@spring-projects-issues

Neale Upstone opened SPR-10864 and commented

Annotating a super-class with @EnableTransactionManagement results in the following exception message: @EnableTransactionManagement is not present on importing class ConcreteClass

This is a complete gotcha when someone will get from trying to be DRY.

It seems that the only way to cause this is to import a class that extends one with the annotation.

If this is the case, then I suggest that the exception should point to the Javadoc of @EnableTransactionManagement, and that the Javadoc should explain why it is not @Inherited.


Issue Links:

Referenced from: commits ce917d5, e8dead2

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions