-
-
Notifications
You must be signed in to change notification settings - Fork 336
Closed
Description
Hello,
Working with Jackson I fell upon this exception:
jackson-annotations/src/main/java/com/fasterxml/jackson/annotation/SimpleObjectIdResolver.java
Line 30 in 9ae15a1
throw new IllegalStateException("Already had POJO for id (" + id.key.getClass().getName() + ") [" + id |
It gave me a hard time to understand the issue until I look into the code.
IMO the exception message is unclear. The issue is that we Already had POJO for id and the new and old object are different (the second part is no explicit in the exception hence can be tricky to debug.
Propostion:
throw new IllegalStateException("Different POJO share the same id (" + id.key.getClass().getName() + ") [" + id
+ "]");
Metadata
Metadata
Assignees
Labels
No labels