alibaba / alibaba/fastjson2

[BUG]升级到 com.alibaba.fastjson 2.0.62 版本,出现国产麒麟操作系统兼容问题

Open
#7,642 6 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
4.4k
Forks
613
Avg merge
1d 22h
Merged PRs (30d)
6

Description

### 问题描述
应用使用的fastjson 包升级到fastjson 2.0.62 版本出现兼容性问题,有用到 JSON.toJSONString 的在麒麟操作系统下抛出如下异常:
com.alibaba.fastjson.JSONException: illegal input ,, offset 58, character ,, line 1, column 58, fastjson-version 2.0.61 ...

### 环境信息
*请填写以下信息:*

- OS信息: 麒麟操作系统
- JDK信息:jdk 1.8.
- 版本信息: Fastjson 2.0.62

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure on the 麒麟 operating system with JDK 1.8, comparing fastjson 2.0.61 and 2.0.62 around JSON.toJSONString. Inspect the serialization path involved in the reported exception and add a regression test for the failing input. Done means JSON.toJSONString no longer throws the reported exception in that environment.

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
Active
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.