-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Injection when there is cyclic references fails #538
Comments
Ok thanks. Creator arguments are known to be bit more problematic, in combination with object and/or type ids. But I hope this can be resolved. |
Added unit test under |
The underlying reason has to do with Object Id being found ok and all, but due to use of creator methods, binding from id to instance can not proceed until the whole object is complete.
which is not overridden by |
Hmmh. Actually, overriding that method would not help either, as it can not produce the object. @pgelinas This may be something you'll have better luck solving eventually. |
I think #639 might be a duplicate of this issue. Can someone please confirm? (Feel free to grab the testcase from that issue if needed) |
Seems to be resolved for 2.8.0, possibly related to fixes to forwards-refs handling. |
Note: Failing for Jackson 3.0.0-SNAPSHOT ( |
When trying to debug problem in my project I was able reduce the problem to this simple case...
It seems that Jackson cannot handle injecting values via constructor when there is cyclic references.
The error disappears when I remove the cyclic reference or inject from either constructor.
The text was updated successfully, but these errors were encountered: