-
Notifications
You must be signed in to change notification settings - Fork 38.9k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement
Milestone
Description
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:
- @Enable registrars invoked with subclass for annotation placed on superclass (3.2.x) [SPR-11251] #15876
@Enableregistrars invoked with subclass for annotation placed on superclass (3.2.x)
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement