-
-
Notifications
You must be signed in to change notification settings - Fork 939
Description
Hey there jruby-devs,
I am not sure if this is a user error on my side; either way let me just report it:
I am using GraalVM 24, which was recently released:
java version "24" 2025-03-18 # when doing "java --version" on my linux box here
And using jruby:
jruby 9.4.12.0 (3.1.4) 2025-02-11 f4ab75096a Java HotSpot(TM) 64-Bit Server VM 24+36-jvmci-b01 on 24+36-jvmci-b01 +jit [x86_64-linux]
However had doing so also leads to this warning:
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::arrayBaseOffset has been called by org.jruby.util.StringSupport (file:/usr/lib/jruby.jar)
WARNING: Please consider reporting this to the maintainers of class org.jruby.util.StringSupport
WARNING: sun.misc.Unsafe::arrayBaseOffset will be removed in a future release
So this could be a user error on my side. Prior graalvm + jruby releases did not have that issue though.
Also note that I tested a hello-world example for jruby-swing, and this works fine, so it seems mostly just a harmless warning. Just reporting this here, in case it was not reported yet. (I am also writing this could be a user error on my side, as I put graalvm and jruby into non-standard directories, and then symlink only a few files from bin/, so perhaps I may have missed something).
The two downloads I used:
https://www.graalvm.org/downloads/ # java 24
https://repo1.maven.org/maven2/org/jruby/jruby-dist/9.4.12.0/jruby-dist-9.4.12.0-bin.tar.gz