Skip to content
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

Throwable can't have its fields serialized #8

Open
niloc132 opened this issue Apr 25, 2019 · 0 comments
Open

Throwable can't have its fields serialized #8

niloc132 opened this issue Apr 25, 2019 · 0 comments

Comments

@niloc132
Copy link
Member

In GWT 2, only detailMessage was serialized, but since old serialization relied on gwt generators, we only saw the source that was provided to GWT, instead of the types in the jre.

A CustomFieldSerializer should be sufficient to read the detailMessage value, but each subclass will need to create the exception with that message with its constructor if possible. Alternatively, providing wiring for the violator pattern in this specific case might help, or leveraging explicit final support to try to pass this to constructors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant