SessionFactoryOptionsImpl#releaseResourcesOnCloseEnabled never initialized

Description

org.hibernate.boot.internal.SessionFactoryOptionsImpl#releaseResourcesOnCloseEnable is always false. In the constructor org.hibernate.boot.internal.SessionFactoryOptionsImpl#SessionFactoryOptionsImpl all other fields are initialized from SessionFactoryOptionsState but releaseResourcesOnCloseEnable. Thus the "hibernate.ejb.discard_pc_on_close" is always ignored.

Environment

None

Status

Assignee

Unassigned

Reporter

Boris Byk

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.2.2

Priority

Major