@EnableTransactionManagement and co should also get detected on superclasses [SPR-10864] #15491
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
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)Referenced from: commits ce917d5, e8dead2
The text was updated successfully, but these errors were encountered: