Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

对象属性中enum类型字段序列化/反序列化失败问题 #457

Closed
terensu opened this issue Nov 24, 2015 · 2 comments
Closed

对象属性中enum类型字段序列化/反序列化失败问题 #457

terensu opened this issue Nov 24, 2015 · 2 comments
Milestone

Comments

@terensu
Copy link

terensu commented Nov 24, 2015

class VO {
private MyEnum myEnum;
public void setMyEnum(MyEnum myEnum){this.myEnum = myEnum;}
public MyEnum getMyEnum(){ return myEnum;}
}
配合自定义的EnumSerDeserializer方式,
序列化|反序列时候:
当设置asm=false,才能成功执行
当设置asm=true,失败

fastJson版本:1.4.2

@wenshao
Copy link
Member

wenshao commented Apr 12, 2016

Enum的类和自定义的EnumSerDeserializer方便贴上来么?

@wenshao wenshao added this to the 1.2.9 milestone Apr 15, 2016
wenshao added a commit that referenced this issue Apr 15, 2016
wenshao added a commit that referenced this issue Apr 15, 2016
@wenshao
Copy link
Member

wenshao commented Apr 15, 2016

bug fixed. it will include in 1.2.9 & 1.1.49.android

@wenshao wenshao closed this as completed Apr 15, 2016
wenshao added a commit that referenced this issue Jul 17, 2019
asa1997 pushed a commit to Be-Secure/fastjson that referenced this issue Feb 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants