[BUG] com.alibaba.fastjson.JSONArray 为什么未显示声明serialVersionUID
- Dominant language
- Java
- Stars
- 4.4k
- Forks
- 613
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 6
Description
### 问题描述
在使用2.0.32版本 反序列化 1.2.78版本序列化的JSONArray时报错。
com.alibaba.fastjson.JSONArray; local class incompatible: stream classdesc serialVersionUID = 1, local class serialVersionUID = 3642856726642946224
2.0.32版本下,com.alibaba.fastjson.JSONArray未指定serialVersionUID
### 期待的正确结果
可以使用2.0.32版本反序列化 1.x版本序列化的内容
### 相关日志输出
com.alibaba.fastjson.JSONArray; local class incompatible: stream classdesc serialVersionUID = 1, local class serialVersionUID = 3642856726642946224
Contributor guide
Research direction
Locate the com.alibaba.fastjson.JSONArray implementation and inspect how its serialVersionUID is determined. Reproduce deserialization of content serialized by fastjson 1.2.78 with fastjson2 2.0.32, then verify that the compatibility error is resolved without breaking current serialization behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100