Missing SessionFactory property (filter AutoCloseable from PropertyDescriptors) #29480
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: regression
A bug that is also a regression
Milestone
Affects: 5.3.20+
Before 5.3.20 the following code worked as intended (note the use of
<util:property-path path="abcEntityManagerFactory.sessionFactory" />
:sessionFactory
property is accessible inabcEntityManagerFactory
bean)After upgrading from Spring 5.3.18 to 5.3.23 the system fails on startup with the following exception:
This is caused by #28445 which is a part of 5.3.20.
SessionFactory
property is no longer accessible: its type isorg.hibernate.engine.spi.SessionFactoryImplementor
which isAutoCloseable
. And according to the newisInvalidReadOnlyPropertyType
method added in #28445 it is filtered out of the bean'sPropertyDescriptors
.The text was updated successfully, but these errors were encountered: