-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Fix reflections registration of constructors used in serialization #20167
Conversation
LGTM
|
That's a good question! I think that really depends on whether As far as this PR is concerned I believe this question is orthogonal, however, and should be tackled in a separate issue/PR. For the record, I would personally prefer to be able to register a class either for:
instead of either "1 or 2" or "1 or 3". "1 or 2" implies that there is no way for me to register a class for both reflection and serialization with a single annotation. I wonder if
would do the trick in such cases. On the other hand "1 or 3" implies that there is no way to avoid registering for reflection a class that I want to be able to serialization, making registrations for serialization more expensive than necessary. |
I was actually surprised that
I understand the argument for 1 annotation. but then I would honor the different attributes as you said this may be a different issue covered by a different PR. |
could you provide some guidance here @stuartwdouglas and/or @gsmet? |
Yeah, it's a little weird to mix the two concerns, but it should probably be addressed in another PR. |
Supersedes #19942
Closes: #19711