Closed
Description
Mike Youngstrom opened SPR-2767 and commented
If I have two request scoped beans who reference each other when I attempt to load one of those beans I get an OutOfMemoryException because of an infinite loop.
Example:
<bean name="someBean" scope="request">
<property name="someOtherBean" ref="someOtherBean"/>
</bean>
<bean name="someOtherBean" scope="request">
<property name="someBean" ref="someBean"/>
</bean>
Even if circular references of non singleton scoped beans is not supported we should probably not have an infinite loop if it's possible to avoid.
Mike
Affects: 2.0 final
Issue Links:
- Circular references between custom scoped beans should be supported [SPR-2691] #7379 Circular references between custom scoped beans should be supported ("depends on")