- Notifications
You must be signed in to change notification settings - Fork 38.9k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: bugA general bugA general bug
Milestone
Description
During SpEL evaluation, if the TypeDescriptor is recursive, the evaluation results in infinite recursion causing stack overflow.
This line:
spring-framework/spring-core/src/main/java/org/springframework/core/convert/TypeDescriptor.java
Line 509 in ba4105d
| ObjectUtils.nullSafeEquals(getMapValueTypeDescriptor(), otherDesc.getMapValueTypeDescriptor())); |
Evaluated object sample where we have this issue is a map:
public class MyClass implements Map<String, MyClass>This causes the evaluation of equality to check the type, and recursively the inner types of the map.
emcrisostomo
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: bugA general bugA general bug