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

用native-image 编译,有许多这样的告警,Warning: RecomputeFieldValue.FieldOffset automatic substitution failed. #1519

Closed
zhonghuali opened this issue Jun 1, 2023 · 3 comments
Labels
bug Something isn't working fixed question Further information is requested
Milestone

Comments

@zhonghuali
Copy link

用native-image 编译,有许多这样的告警:
Warning: RecomputeFieldValue.FieldOffset automatic substitution failed. The automatic substitution registration was attempted because a call to sun.misc.Unsafe.objectFieldOffset(Field) was detected in the static initializer of com.a
libaba.fastjson2.writer.ObjectWriterImplMap. Detailed failure reason(s): The argument of Unsafe.objectFieldOffset(Field) is not a constant field., The field com.alibaba.fastjson2.writer.ObjectWriterImplMap.jsonObject1InnerMapOffset,
where the value produced by the field offset computation is stored, is not static final.

请问如何消除掉?
谢谢

@zhonghuali zhonghuali added the question Further information is requested label Jun 1, 2023
@wenshao wenshao added this to the 2.0.34 milestone Jun 1, 2023
@wenshao wenshao added the bug Something isn't working label Jun 1, 2023
@wenshao
Copy link
Member

wenshao commented Jun 1, 2023

https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.34-SNAPSHOT/
帮用这个版本再看下,具体的告警信息帖上来,我挨个处理

@wenshao wenshao added the fixed label Jun 18, 2023
@wenshao
Copy link
Member

wenshao commented Jun 18, 2023

https://github.com/alibaba/fastjson2/releases/edit/2.0.34
问题已修复,请用新版

@wenshao wenshao closed this as completed Jun 18, 2023
@lizhen789
Copy link

image
版本:2.0.52,springboot 3.3.3

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 question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants