robot icon indicating copy to clipboard operation
robot copied to clipboard

Robot command triggers a warning message about deprecated method.

Open pfabry opened this issue 3 months ago • 3 comments

I just installed ROBOT on a new computer (Macbook Intel, MacOS Ventura 13.7.8) and I get the following warning each time I use it :

WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by com.github.benmanes.caffeine.base.UnsafeAccess (file:/usr/local/bin/robot.jar)
WARNING: Please consider reporting this to the maintainers of class com.github.benmanes.caffeine.base.UnsafeAccess
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release

I am using the following Java environment:

java 24.0.2 2025-07-15
Java(TM) SE Runtime Environment (build 24.0.2+12-54)
Java HotSpot(TM) 64-Bit Server VM (build 24.0.2+12-54, mixed mode, sharing)

Event the '--version' command triggers the message.

pfabry avatar Sep 30 '25 15:09 pfabry

This is a new warning introduced by Java 24 (JEP 498).

It comes from a dependency of the OWLAPI, caffeine, which is pinned to version 2.9.3. Versions 3.x seemingly no longer use sun.misc.Unsafe.

gouttegd avatar Oct 27 '25 22:10 gouttegd

OWL API 5 seems to be on 3.x: https://github.com/owlcs/owlapi/blob/d7e997a53b470e32700de89cc610d9daf01ea769/pom.xml#L98-L102

Should we one day finally update ROBOT and Protégé to version 5, possibly breaking some plugins? 😕

balhoff avatar Oct 28 '25 15:10 balhoff

@balhoff I think this is something that we should consider at some point. I've been wondering for a while how long we can ask OWLAPI developers to keep the 4.x branch alive for us...

gouttegd avatar Oct 28 '25 15:10 gouttegd