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

[FEATURE]添加对java.awt.Color类型的序列化和反序列化支持 #2578

Closed
kenanor opened this issue May 15, 2024 · 2 comments
Closed
Labels
enhancement New feature or request fixed
Milestone

Comments

@kenanor
Copy link

kenanor commented May 15, 2024

请描述您的需求或者改进建议

对您想要需求或建议的清晰简洁的描述。
1.x版本是支持的,在2.0.50版本中反序列化出来的rgb全是0
希望实现类似于如下效果:
String colorStr = JSONObject.toJSONString(Color.BLUE); //{"r":0,"g":0,"b":255,"alpha":255}
Color color = JSONObject.parseObject(colorStr, Color.class);//java.awt.Color[r=0,g=0,b=255]

请描述你建议的实现方案

对您想要需求或建议的实现方案的详细描述。

描述您考虑过的替代方案

对您考虑过的任何替代解决方案或功能的描述。

附加信息

如果你还有其他需要提供的信息,可以在这里填写(可以提供截图、视频等)。

@kenanor kenanor added the enhancement New feature or request label May 15, 2024
@wenshao wenshao added this to the 2.0.51 milestone May 15, 2024
@wenshao
Copy link
Member

wenshao commented May 22, 2024

https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.51-SNAPSHOT/
问题已修复,请帮忙用2.0.51-SNAPSHOT版本验证下

@wenshao wenshao added the fixed label May 22, 2024
@wenshao
Copy link
Member

wenshao commented Jun 1, 2024

https://github.com/alibaba/fastjson2/releases/tag/2.0.51
问题已修复,请用新版本

@wenshao wenshao closed this as completed Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fixed
Projects
None yet
Development

No branches or pull requests

2 participants