Robot command triggers a warning message about deprecated method.
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.
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.
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 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...