-
-
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
Copy constructor does not preserve _injectableValues
#696
Comments
It is worth noting that currently there is no way to recover |
Right. I had to think for a bit, to figure out whether this is a bug or feature. As to whether these should accessible or not... so far I haven't thought they need to be made visible, hence no accessor added. I can add one; they are not state secret either. :) |
Fixed; 2.5.1 will copy injectables as expected, and 2.6 has additional accessors. Thank you again for reporting this! |
…ected ObjectMapper directly * Workaround for FasterXML/jackson-databind#696
Currently the copy constructor makes no effort to copy injectable values. I'm not quite sure what the proper behavior of this would be, whether the ObjectMapper copy should retain a copy of the values at the time of the copy, or if the copy and original should just point to the same instance of the injectable values. Or if it just needs to be noted in the injectables documentation that the injectables are not attempted to be preserved across copies.
The text was updated successfully, but these errors were encountered: