Skip to content

StackOverflowError when expression calls method which is a Collection of itself [SPR-9735] #14369

@spring-projects-issues

Description

@spring-projects-issues

Marc Wielansky opened SPR-9735 and commented

StackOverflowError results from ReflectiveMethodExecutor.execute(EvaluationContext, Object, Object...) line: 69 when returned object is a collection of itself.

Example:

expression: "manager.getItem()"
method: public Item getItem() { return item; }
class: public class Item implements List<Item> - this object has properties, but also is a list of items of the same type


Affects: 3.1.1, 3.2.8

Attachments:

Issue Links:

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions