elastic / elastic/apm-agent-java

sun.misc.Unsafe::arrayBaseOffset has been called by com.lmax.disruptor.RingBufferFields

Open
#4,312 3 comments 2 reactions 0 assignees View on GitHub
agent-java community
Dominant language
Java
Stars
594
Forks
338
Avg merge
1d 13h
Merged PRs (30d)
25

Description

## Describe the bug

Running on Java 25 yields the following warning:

```
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::arrayBaseOffset has been called by com.lmax.disruptor.RingBufferFields (file:/app/agents/elastic-apm-agent.jar)
WARNING: Please consider reporting this to the maintainers of class com.lmax.disruptor.RingBufferFields
WARNING: sun.misc.Unsafe::arrayBaseOffset will be removed in a future release
```

## Steps to reproduce

Start application with Elastic APM Agent attached on Java 25.

## Expected behavior

No warning.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.