Skip to content

Java 24 warning about Unsafe #917

Description

@cstamas

On Java 24 msgpack warns:

WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::arrayBaseOffset has been called by org.msgpack.core.buffer.MessageBuffer (file:/Users/runner/.m2/repository/org/msgpack/msgpack-core/0.9.10/msgpack-core-0.9.10.jar)
WARNING: Please consider reporting this to the maintainers of class org.msgpack.core.buffer.MessageBuffer
WARNING: sun.misc.Unsafe::arrayBaseOffset will be removed in a future release

Activity

  1. matthewadams commented on Jul 13, 2026

    @matthewadams

    Still true on 0.9.12

    WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
    WARNING: sun.misc.Unsafe::arrayBaseOffset has been called by org.msgpack.core.buffer.MessageBuffer (file:/Users/matthewadams/.gradle/caches/modules-2/files-2.1/org.msgpack/msgpack-core/0.9.12/7ed93230c1d5ded2eab11908031132fa3649a30b/msgpack-core-0.9.12.jar)
    WARNING: Please consider reporting this to the maintainers of class org.msgpack.core.buffer.MessageBuffer
    WARNING: sun.misc.Unsafe::arrayBaseOffset will be removed in a future release
    
    $ java -version
    openjdk version "25.0.2" 2026-01-20
    OpenJDK Runtime Environment GraalVM CE 25.0.2+10.1 (build 25.0.2+10-jvmci-b01)
    OpenJDK 64-Bit Server VM GraalVM CE 25.0.2+10.1 (build 25.0.2+10-jvmci-b01, mixed mode, sharing)
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions