-
-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typed object with anchor throws Already had POJO for id #231
Comments
Btw, leaving out the anchor also causes parsing to fail with a different exception:
for input
Removing |
Looking into this: for some reason, OBject Id registration done twice. Not yet sure if it is due to buffering needed (due to type info), or differing Object Id handling wrt YAML (since it has native construct, unlike json and most other formats). |
Or, possibly this is actually due to messy translocation of Object Id (YAML anchor) during YAMLParser handling, and nothing to do with databinding. Gnarly. |
Ended up adding work-around (see FasterXML/jackson-annotations#180) that will avoid the issue, pass the test. |
What about the second problem? Should I open a separate issue? Reproducing it is to just leave out the anchor in the yaml. |
@almson Yes, please open separate issue with changed reproduction, refer this issue as background. |
Tested with jackson-dataformat-yaml 2.11.3
throws
the problem is that SimpleObjectIdResolver.bindItem is called twice. Possibly, BeanDeserializerBase:1188 is not necessary at all.
The text was updated successfully, but these errors were encountered: