Skip to content

TransactionalApplicationListenerMethodAdapter should find @TransactionalEventListener on target class method #31034

@odrotbohm

Description

@odrotbohm

Assume an arrangement like this:

interface MyInterface {
  void foo();
}

class MyClass implements MyInterface {
  @TransactionalEventListener
  void foo() { … }
}

In this case, TransactionalApplicationListenerMethodAdapter is invoked with MyClass as target class, but MyInterface.foo() as method. The annotation lookup then fails, as only the interface method is inspected, not the one on the target class.

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions