The new org.hibernate.resource.beans.spi.ExtendedBeanManager breaks compatibility with implementations of org.hibernate.jpa.event.spi.jpa.ExtendedBeanManager

Description

The reason is its only method accepts a org.hibernate.resource.beans.spi.ExtendedBeanManager.LifecycleListener, whereas it used to accept a org.hibernate.jpa.event.spi.jpa.ExtendedBeanManager.LifecycleListener. Therefore implementations of the older version of ExtendedBeanManager do not implement the method with the right signature, and we get exceptions at runtime.

Example with the Wildfly implementation:

We need to restore the org.hibernate.jpa.event.spi.jpa.ExtendedBeanManager.LifecycleListener interface and add a default method to handle backward compatibility. I'll submit a PR soon.

Environment

None

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure