[hibernate-commits] [hibernate/hibernate-orm] 3c5534: HHH-13070 Perform injections on listener when usin...

GitHub noreply at github.com
Fri Nov 2 13:56:20 EDT 2018


  Branch: refs/heads/master
  Home:   https://github.com/hibernate/hibernate-orm
  Commit: 3c5534f23f794a00bf376f6e0937718c6bf01dbb
      https://github.com/hibernate/hibernate-orm/commit/3c5534f23f794a00bf376f6e0937718c6bf01dbb
  Author: Frank Doherty <fdoherty at atlassian.com>
  Date:   2018-11-02 (Fri, 02 Nov 2018)

  Changed paths:
    M hibernate-core/src/main/java/org/hibernate/event/service/internal/EventListenerGroupImpl.java
    A hibernate-core/src/test/java/org/hibernate/event/service/internal/EventListenerGroupAppendListenerTest.java

  Log Message:
  -----------
  HHH-13070 Perform injections on listener when using duplication strategy with REPLACE_ORIGINAL

- Previously, the CallbackRegistryConsumer/JpaBootstrapSensitive injections were not performed on new listeners that
  were appended using duplication strategy with REPLACE_ORIGINAL, which could lead to NullPointerException when the
  listener was invoked (for example for a listener which is a CallbackRegistryConsumer, as the callbackRegistry field
  was not set)
- Added calls to checkAgainstBaseInterface and performInjections on the listener, in the case of appending a listener
  which replaces an existing one
- Added test cases to verify that the callbackRegistry is being injected



      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the hibernate-commits mailing list