ApplicationEventPublisher - PayloadApplicationEvent not received by EventListener if event fired from child context #30360
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: regression
A bug that is also a regression
Milestone
If PayloadApplicationEvent is published via ApplicationEventPublisher from child context, it will not be received by EventListeners in the parent context. This worked in Spring 5.x
Tested with spring versions: 6.0.7, 6.0.8
I have attached a sample application to reproduce the problem.
PayloadApplicationEventS are only received by the EventListener in the child context but not in parent context.
Subclasses of ApplicationEvent are not affected and still received by the listener in the parent context.
kind regards
Robert
sample.zip
The text was updated successfully, but these errors were encountered: