-
Notifications
You must be signed in to change notification settings - Fork 479
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]Typeutils转换char类型到String类型再通过Typeutils转换回char类型时会导致char的值变成" #564
Comments
FanJiaRui
changed the title
[BUG]
[BUG]Typeutils转换char类型到String类型再通过Typeutils转换回char类型时会导致char的值变成"
Jul 14, 2022
wenshao
added a commit
that referenced
this issue
Jul 14, 2022
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.10-SNAPSHOT/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
使用Fastjson提供的Typeutils转换char类型到String类型再通过Typeutils转换回char类型时会导致char的值变成"
原因应该是因为char类型经过Typeuitls转换为String时变成了"1",然而转换回char时取的第一个字符正好为"导致
char转字符串加双引号是否有问题不好说,但我觉得Typeuitls双向转换之后值失真应该是个bug
环境信息
请填写以下信息:
重现步骤
执行以下代码
期待的正确结果
预期输出结果为
1
1
相关日志输出
然而实际输出结果为
1
"
附加信息
The text was updated successfully, but these errors were encountered: