platform
platform copied to clipboard
Warnings from Java 25 (native access, sun.misc.Unsafe etc.)
This is a follow up from #490 Various warnings showing up from different components
Starting platform in the container:
Dashjoin Platform 6.2.10-0a2fead6-0be07c6 (built 2025-10-21T15:34:56+0000)
Linux 6.10.14-linuxkit aarch64 / OpenJDK 64-Bit Server VM 25+36-LTS - Temurin-25+36
availableProcessors 8 / maxMemory (MB) 4744 / freeMemory (MB) 73 / totalMemory (MB) 100
> cwd = /deployments
> java.home = /opt/java/openjdk
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::allocateMemory has been called by io.netty.util.internal.PlatformDependent0$2 (file:/deployments/lib/main/io.netty.netty-common-4.1.127.Final.jar)
WARNING: Please consider reporting this to the maintainers of class io.netty.util.internal.PlatformDependent0$2
WARNING: sun.misc.Unsafe::allocateMemory will be removed in a future release
In Github action build:
Could not initialize class org.jboss.threads.JDKSpecific$ThreadAccess
--
build --add-opens java.base/java.lang=ALL-UNNAMED
build Could not initialize class org.jboss.threads.JDKSpecific$ThreadAccess
build --add-opens java.base/java.lang=ALL-UNNAMED
4 errors
[build] (https://github.com/dashjoin/platform/actions/runs/18686295289/job/53279741853#step:4:3864)
Could not initialize class org.jboss.threads.JDKSpecific$ThreadAccess
[build] (https://github.com/dashjoin/platform/actions/runs/18686295289/job/53279741853#step:4:3858)
--add-opens java.base/java.lang=ALL-UNNAMED
[build] (https://github.com/dashjoin/platform/actions/runs/18686295289/job/53279741853#step:4:3349)
Could not initialize class org.jboss.threads.JDKSpecific$ThreadAccess
[build] (https://github.com/dashjoin/platform/actions/runs/18686295289/job/53279741853#step:4:3344)
--add-opens java.base/java.lang=ALL-UNNAMED
From ./mvnw wrapper:
./mvnw -v
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by org.fusesource.jansi.internal.JansiLoader in an unnamed module (file:/Users/uli/.m2/wrapper/dists/apache-maven-3.9.9/3477a4f1/lib/jansi-2.4.1.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)