-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Hans opened SPR-17397 and commented
Steps to reproduce:
- create two entities with a JPA-one-to-many-relationship between the two
- annotate both classes with lombok's
@Data
(generating e.g. toString()) - set logging.level.org.springframework.web to DEBUG
- POST a new child object with a parent reference
- Spot the exception. In my case, backend state was correct, frontend stopped working.
Lombok's autogenerated toString() methods probably result in an endless loop in this call:
spring-framework/spring-core/src/main/java/org/springframework/core/log/LogFormatUtils.java
Line 50 in fdaceeb
String s = (value instanceof CharSequence ? "\"" + value + "\"" : value.toString()); |
Besides excluding some fields from being toStringified() by lombok, this method probably shouldn't throw an error in any case so you might consider try-catching the call.
Affects: 5.1.1
Referenced from: commits 7ff938b
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