Skip to content

LTW on Java 24 gives terminally deprecated warning related to sun.misc.Unsafe::objectFieldOffset usage #330

@aclement

Description

@aclement

This topic again...

Tests in AspectJ that are attempting LTW on Java 24 will see:

WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor (file:XXX)
WARNING: Please consider reporting this to the maintainers of class org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release

Currently I think i will just allow the tests to pass if they see this, but at some point it all needs revisiting again, but I don't believe a proper solution has been negotiated yet.

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