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

enum使用@JSONType后,无法反序列化 #1452

Open
codeloam opened this issue Sep 2, 2017 · 2 comments
Open

enum使用@JSONType后,无法反序列化 #1452

codeloam opened this issue Sep 2, 2017 · 2 comments
Labels

Comments

@codeloam
Copy link

codeloam commented Sep 2, 2017

根据enum_custom_serialization,在enum上加上了@jsontype(serializeEnumAsJavaBean = true),序列化没问题,但是反序列化的时候提示
com.alibaba.fastjson.JSONException: parse enum AppType error, value : {"type":3}

我是需要自己写反序列化的类么?

@wenshao
Copy link
Member

wenshao commented Sep 3, 2017

@wtNewGit
Copy link

@wenshao 我将你EnumCustomCodecTest.java 这个类运行,是不通过的。

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

3 participants