[BUG] WARNING: sun.misc.Unsafe::arrayBaseOffset will be removed in a future release
- Dominant language
- Java
- Stars
- 4.4k
- Forks
- 613
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 6
Description
Running Openjdk 24, these warnings appear in the console.
```
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:/server/spatial/SpeciesSpatialService.jar)
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
```
Info about it: [https://openjdk.org/jeps/471](https://openjdk.org/jeps/471)
Contributor guide
Research direction
Start with the com.alibaba.fastjson2.util.JDKUtils entry point and review OpenJDK JEP 471 to understand the reported Unsafe::arrayBaseOffset warning on OpenJDK 24. Reproduce the warning with the reported runtime and verify that the warning is gone while the affected fastjson2 functionality remains working.
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
- Mostly clear
- Newbie friendliness
- 38/100