Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

MonetaCodec序列化BigDecimal类型兼容问题 #3318

@0x1227

Description

@0x1227

com.alibaba.fastjson.support.moneta.MonetaCodec
在实现序列化的时候会把BigDecimal的2.0序列化成2;
{"numberStripped":2,"currency":"USD"}
反序列化的时候会把2反序列化成Integer,类型检查时导致UnsupportedOperationException
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions