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
java.lang.NullPointerException: Cannot invoke "Object.equals(Object)" because "name" is null
at com.alibaba.fastjson2.reader.ObjectReaderImplMapTyped.readObject(ObjectReaderImplMapTyped.java:379)
at com.alibaba.fastjson2.reader.ORG_1_1_Bean.readObject(Unknown Source)
at com.alibaba.fastjson2.reader.ObjectReaderAdapter.autoType(ObjectReaderAdapter.java:247)
at com.alibaba.fastjson2.reader.ORG_1_1_Bean.readObject(Unknown Source)
at com.alibaba.fastjson2.JSON.parseObject(JSON.java:1577)
at Issue1679Mutated_763.test_json_getBytes(Issue1679Mutated_763.java:69)
java.lang.NullPointerException: Cannot invoke "Object.equals(Object)" because "name" is null
at com.alibaba.fastjson2.reader.ObjectReaderImplMapTyped.readObject(ObjectReaderImplMapTyped.java:379)
at com.alibaba.fastjson2.reader.ORG_1_1_Bean.readObject(Unknown Source)
at com.alibaba.fastjson2.reader.ObjectReaderAdapter.autoType(ObjectReaderAdapter.java:247)
at com.alibaba.fastjson2.reader.ORG_1_1_Bean.readObject(Unknown Source)
at com.alibaba.fastjson2.JSON.parseObject(JSON.java:1062)
at Issue1679Mutated_763.test_json(Issue1679Mutated_763.java:59)
The text was updated successfully, but these errors were encountered:
问题描述
EnumMap在配置WriteClassName和SupportAutoType后,无法使用JSON.parseObject反序列化。使用JSONB.parseObject以及在fastjson 1.2.83中正常
环境信息
重现步骤
期待的正确结果
能够反序列化
相关日志输出
java.lang.NullPointerException: Cannot invoke "Object.equals(Object)" because "name" is null
at com.alibaba.fastjson2.reader.ObjectReaderImplMapTyped.readObject(ObjectReaderImplMapTyped.java:379)
at com.alibaba.fastjson2.reader.ORG_1_1_Bean.readObject(Unknown Source)
at com.alibaba.fastjson2.reader.ObjectReaderAdapter.autoType(ObjectReaderAdapter.java:247)
at com.alibaba.fastjson2.reader.ORG_1_1_Bean.readObject(Unknown Source)
at com.alibaba.fastjson2.JSON.parseObject(JSON.java:1577)
at Issue1679Mutated_763.test_json_getBytes(Issue1679Mutated_763.java:69)
java.lang.NullPointerException: Cannot invoke "Object.equals(Object)" because "name" is null
at com.alibaba.fastjson2.reader.ObjectReaderImplMapTyped.readObject(ObjectReaderImplMapTyped.java:379)
at com.alibaba.fastjson2.reader.ORG_1_1_Bean.readObject(Unknown Source)
at com.alibaba.fastjson2.reader.ObjectReaderAdapter.autoType(ObjectReaderAdapter.java:247)
at com.alibaba.fastjson2.reader.ORG_1_1_Bean.readObject(Unknown Source)
at com.alibaba.fastjson2.JSON.parseObject(JSON.java:1062)
at Issue1679Mutated_763.test_json(Issue1679Mutated_763.java:59)
The text was updated successfully, but these errors were encountered: