We're updating the issue view to help you get more done. 

callbackRegistry is not injected to event listener when appended to listener group using REPLACE_ORIGINAL duplication strategy

Description

Create a new event listener.
Append it to the event listener group using a duplication strategy with REPLACE_ORIGINAL.
The (CallbackRegistryConsumer/JpaBootstrapSensitive) injections are not performed on the listener.

This can lead to NullPointerException when the listener is invoked (for example for a listener which is a CallbackRegistryConsumer, as the callbackRegistry field is not set).

(Note that the injections are performed if the listener is prepended or appended with no duplication strategy).

Environment

None

Status

Assignee

Frank Doherty

Reporter

Frank Doherty

Fix versions

Labels

None

backPortable

Backport?

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Worked in

5.2.17

Components

Affects versions

5.3.0.Final

Priority

Major