ApplicationListenerMethodAdapter inconsistently publishes events from CompletableFuture #30578
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
For values returned from an
@EventListener
method,ApplicationListenerMethodAdapter
detects arrays/collections and publishes every single element as an event. However, for itsCompletionStage
check (as applied to aCompletableFuture
), it always publishes the given Object as-is. It should delegate to thepublishEvents
methods with its arrays/collections check as well.The text was updated successfully, but these errors were encountered: