Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] JSONObject.to SupportClassForName没效果 #914

Closed
RockyLOMO opened this issue Nov 9, 2022 · 2 comments
Closed

[BUG] JSONObject.to SupportClassForName没效果 #914

RockyLOMO opened this issue Nov 9, 2022 · 2 comments
Labels
bug Something isn't working fixed
Milestone

Comments

@RockyLOMO
Copy link

问题描述

JSONObject.to SupportClassForName没效果

环境信息

请填写以下信息:

  • OS信息: [e.g.:CentOS 8.4.2105 4Core 3.10GHz 16 GB]
  • JDK信息: [e.g.:Openjdk 1.8.0_312]
  • 版本信息:[e.g.:Fastjson2 2.0.18]

重现步骤

如何操作可以重现该问题:

  return new JSONObject(map).to(type,JSONReader.Feature.SupportClassForName);    //没效果
  return JSON.parseObject(JSON.toJSONString(map),type, JSONReader.Feature.SupportClassForName);  //有效果

期待的正确结果

JSONObject.to SupportClassForName 生效

@RockyLOMO RockyLOMO added the bug Something isn't working label Nov 9, 2022
@wenshao wenshao added this to the 2.0.19 milestone Nov 11, 2022
wenshao added a commit that referenced this issue Nov 11, 2022
@wenshao
Copy link
Member

wenshao commented Nov 11, 2022

https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.19-SNAPSHOT/
问题已修复,请帮忙用2.0.19-SNAPSHOT验证,2.0.19版本预计在11月13日前发布。

@wenshao wenshao added the fixed label Nov 11, 2022
@wenshao
Copy link
Member

wenshao commented Nov 12, 2022

@wenshao wenshao closed this as completed Nov 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed
Projects
None yet
Development

No branches or pull requests

2 participants