Hello,
Working with Jackson I fell upon this exception:
|
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
+ "]");
Hello,
Working with Jackson I fell upon this exception:
jackson-annotations/src/main/java/com/fasterxml/jackson/annotation/SimpleObjectIdResolver.java
Line 30 in 9ae15a1
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: