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

Deserializing Enum constants fails in j2cl #35

Closed
vegegoku opened this issue Apr 20, 2020 · 0 comments
Closed

Deserializing Enum constants fails in j2cl #35

vegegoku opened this issue Apr 20, 2020 · 0 comments
Assignees
Labels
Milestone

Comments

@vegegoku
Copy link
Member

In domino-jackson EnumJsonDeserilizer uses Enum.valueOf(Class<E> enumType, String enumName) to evaluate the enum constant.

The valueOf method is emulated in GWT2.x
https://github.com/gwtproject/gwt/blob/master/user/super/com/google/gwt/emul/java/lang/Enum.java#L38

but is not emulated yet in j2cl
https://github.com/google/j2cl/blob/d555a3350bd9e374686138b0c484207a363aefa0/jre/java/java/lang/Enum.java#L56

which makes the deserialization fails at runtime

there is already an issue filed to j2cl project to address this problem
google/j2cl#90

we are going to implement a workaround for this until the issue is fixed in j2cl

@vegegoku vegegoku added the bug label Apr 20, 2020
@vegegoku vegegoku added this to the 1.0 milestone Apr 20, 2020
@vegegoku vegegoku self-assigned this Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant