You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.
反序列方定义的类没有定义QUALITY_GRADUATE(3L, "c")。
使用场景为序列方返回Set set,set里面的元素为IS_NEED_CHECK_IDENTITY,QUALITY_GRADUATE。在反序列方解析时报
Caused by: java.lang.IllegalArgumentException: No enum constant test.BuFlag.QUALITY_GRADUATE
at java.lang.Enum.valueOf(Enum.java:236)
at com.alibaba.fastjson.parser.deserializer.EnumDeserializer.deserialze(EnumDeserializer.java:61)
序列化方定义的枚举类型为:
反序列化定义的枚举类型为:
反序列方定义的类没有定义QUALITY_GRADUATE(3L, "c")。
使用场景为序列方返回Set set,set里面的元素为IS_NEED_CHECK_IDENTITY,QUALITY_GRADUATE。在反序列方解析时报
Caused by: java.lang.IllegalArgumentException: No enum constant test.BuFlag.QUALITY_GRADUATE
at java.lang.Enum.valueOf(Enum.java:236)
at com.alibaba.fastjson.parser.deserializer.EnumDeserializer.deserialze(EnumDeserializer.java:61)
fastjson版本为1.2.5,试了最新版也是一样报错,请问这个有办法解决吗?可以让反序列化方在反序列时,如果没有定义QUALITY_GRADUATE,就丢弃QUALITY_GRADUATE这个值吗?
The text was updated successfully, but these errors were encountered: