-
Notifications
You must be signed in to change notification settings - Fork 9
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
Set, ArrayList, Map break deserialization #12
Comments
This is a bug I encountered early on, and apparently forgot about: old GWT-RPC had specific changes made to the JRE emulation so that there was always a serializable field to represent the data which needed to be serialized. In contrast, the JRE's actual implementation marks the actual storage of the data as Instead of a |
Plan: Create a new annotation that will be put on a CustomFieldSerializer to indicate the Object types that this serializer will read/write to the stream. As an example, This annotation on CustomFieldSerializer types will either let the index of the generic arg on the original type be specified, or the fully qualified type. It may be possible to generalize the "qualified type name" (pre-publish edit: actually a class literal seems better) to also allow it to be parameterized, and possibly parameterized based on the generics of the serializable type itself, but this isn't a goal for this initial step (and isn't necessary to solve this particular bug). |
seems problem with generics for Set, ArrayList, Map.
try to change ArrayList on List and it will work
repo for reproduce:
https://github.com/Bellski/rpc
The text was updated successfully, but these errors were encountered: