alibaba / alibaba/fastjson2

A terminally deprecated method in sun.misc.Unsafe used

Open
#3,996 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
4.4k
Forks
613
Avg merge
1d 22h
Merged PRs (30d)
6

Description

I get the following message when running fastjson2:

```
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::arrayBaseOffset has been called by com.alibaba.fastjson2.util.JDKUtils (file:....)
WARNING: Please consider reporting this to the maintainers of class com.alibaba.fastjson2.util.JDKUtils
WARNING: sun.misc.Unsafe::arrayBaseOffset will be removed in a future release
```

See [JEP 471](https://openjdk.org/jeps/471)

Contributor guide

Open the contributing guide

Research direction

Start by locating com.alibaba.fastjson2.util.JDKUtils and the use of sun.misc.Unsafe::arrayBaseOffset described in the warning. Check the JEP 471 guidance and verify that the relevant fastjson2 execution path no longer emits the terminal-deprecation warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.