Avoid stack overflow in case of chained factory-bean references to FactoryBean class

Issue: SPR-14551
(cherry picked from commit 8b5d355)
This commit is contained in:
Juergen Hoeller
2016-08-11 22:56:14 +02:00
parent 79a56967a1
commit e23ac031ff
3 changed files with 18 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2015 the original author or authors.
* Copyright 2002-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -90,7 +90,7 @@ public abstract class AbstractEntityManagerFactoryIntegrationTests extends org.s
}
static enum Provider {
enum Provider {
ECLIPSELINK, HIBERNATE, OPENJPA
}

View File

@@ -30,4 +30,10 @@
</property>
</bean>
<bean id="sessionFactory" factory-bean="entityManagerFactory" factory-method="getSessionFactory"/>
<bean id="hibernateStatistics" factory-bean="sessionFactory" factory-method="getStatistics"/>
<bean class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator"/>
</beans>