-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: bugA general bugA general bug
Milestone
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")
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: bugA general bugA general bug