alibaba / alibaba/fastjson2

[FEATURE]升级到2.0.33,与以前版本不兼容的问题!!!

Open
#1,532 1 comment 0 reactions 0 assignees View on GitHub
enhancement fixed
Dominant language
Java
Stars
4.4k
Forks
613
Avg merge
1d 22h
Merged PRs (30d)
6

Description

### 请描述您的需求或者改进建议
因为BigDecimal问题,升级到2.0.33后发现加了JSONWriter.Feature.WriteClassName后,所有的Long型后面多了个 "L", 导致以前版本反序列化的时候报错,2.0.33以前的版本也加的有JSONWriter.Feature.WriteClassName,Long型后面就没有“L”,不同版本都是可以相互使用的。我们周五升级到2.0.33,今天一来,其他系统都挂了。
希望升级版本后,能向前兼容。

Contributor guide

Open the contributing guide

Research direction

Start by reproducing serialization with JSONWriter.Feature.WriteClassName for Long values on version 2.0.33, then compare deserialization using a version before 2.0.33. Trace the JSON serialization and deserialization entry points involved and add a regression test showing that the versions remain compatible without the extra "L" causing failures.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.