Cooper

Results 51 issues of Cooper

### 问题描述 Based on #1605,Fastjson在反序列化org.joda.time.DateTime时不一致 ### 环境信息 - OS信息: [MacOS 12.7.4 M1 Pro 16 GB] - JDK信息: [Openjdk 17.0.6] - 版本信息:[Fastjson 2.0.49] ### 重现步骤 ```java import com.alibaba.fastjson2.JSON; import org.joda.time.DateTime; import...

bug
fixed

### 问题描述 类似 #2543,fastjson和fastjson2在JSON.toJSONBytes后进行序列化的结果不一致,而且均不符合正常预期。 ### 环境信息 - OS信息: [MacOS 12.7.4 M1 Pro 16 GB] - JDK信息: [Openjdk 17.0.6] - 版本信息:[Fastjson2-2.0.49] ### 重现步骤 ```java import com.alibaba.fastjson2.JSON; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals;...

bug

### 问题描述 基于 #474,解析malformed的json,fastjson2抛exception 而fastjson默认通过解析。 ### 环境信息 - OS信息: [MacOS 12.7.4 M1 Pro 16 GB] - JDK信息: [Openjdk 17.0.6] - 版本信息:[Fastjson 2.0.49] ### 重现步骤 ```java import com.alibaba.fastjson2.JSON; import com.alibaba.fastjson2.TypeReference; import...

bug

### 问题描述 类似 #2520,出现JSONObject Cast Exception ### 环境信息 - OS信息: [MacOS 12.7.4 M1 Pro 16 GB] - JDK信息: [Openjdk 17.0.6] - 版本信息:[Fastjson 2.0.49] ### 重现步骤 ```java import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONPath;...

bug
fixed

### 问题描述 类似 #546 和 #2523 ,fastjson 和 fastjson2 在序列化/反序列化含大小写字符串时的处理方式不一致 ### 环境信息 - OS信息: [MacOS 12.7.4 M1 Pro 16 GB] - JDK信息: [Openjdk 17.0.6] - 版本信息:[Fastjson/Fastjson2 2.0.49] ### 重现步骤 ```java...

bug

### 问题描述 #1258 在fastjson中有问题,fastjson2结果正常 ### 环境信息 - OS信息: [MacOS 12.7.4 M1 Pro 16 GB] - JDK信息: [Openjdk 17.0.6] - 版本信息:[Fastjson 2.0.49] ### 重现步骤 ```java import com.alibaba.fastjson2.JSON; import com.alibaba.fastjson2.annotation.JSONField; import lombok.Data;...

bug

### 问题描述 `{}`为空json对象,JSON.parseObject正常。使用parseArray时,fastjson2抛出异常,而fastjson将其解析为`[{}]`。 ### 环境信息 - OS信息: [MacOS 12.7.4 M1 Pro 16 GB] - JDK信息: [Openjdk 17.0.6] - 版本信息:[Fastjson 2.0.49] ### 重现步骤 ```java import com.alibaba.fastjson2.JSON; import org.junit.jupiter.api.Test; import java.util.List; import...

bug

### 问题描述 Fastjson中JSONObject.parse 与Fastjson2有差异 ### 环境信息 - OS信息: [MacOS 12.7.4 M1 Pro 16 GB] - JDK信息: [Openjdk 17.0.6] - 版本信息:[Fastjson 2.0.49] ### 重现步骤 ```java import com.alibaba.fastjson2.JSONException; import com.alibaba.fastjson2.JSONObject; import org.junit.jupiter.api.Test;...

bug

### 问题描述 fastjson 和 fastjson2 对Enum使用toJSONString 不一致 ### 环境信息 *请填写以下信息:* - OS信息: [e.g.:MacOS 12.7.4 M1 Pro 16 GB] - JDK信息: [e.g.:Openjdk 17.0.6] - 版本信息:[e.g.:Fastjson 2.0.49] ### 重现步骤 ```java import com.alibaba.fastjson.serializer.SerializerFeature;...

bug
fixed

### 问题描述 ClassCastException: class com.alibaba.fastjson2.JSONArray cannot be cast to class com.alibaba.fastjson.JSONArray ### 环境信息 - OS信息: [e.g.:MacOS 12.7.4 Apple M1 Pro 16GB] - JDK信息: [e.g.:Openjdk 17.0.6 ] - 版本信息:[e.g.:Fastjson 2.0.49] ###...

bug
fixed