Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
17.10.3
-
None
-
Windows 11 Pro, Edge 145, using an instance of XWiki 17.10.4 on PostgreSQL 17, Tomcat 11, Java 25
-
Unknown
-
Description
Steps to reproduce
- Start XWiki (e.g. 17.10.3 and 17.10.4) on Java 25
- Observe the logs (XWiki console)
Expected results
No (other) warnings are displayed.
Actual results
The following warnings are displayed:
Reproduced on both Tomcat 11 and Jetty:
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called WARNING: sun.misc.Unsafe::staticFieldBase has been called by com.google.inject.internal.aop.HiddenClassDefiner (file:/D:/Win%2010%20Backup/LUCRU_D/TOMCAT_HOME%2011.0.18%20-%2017.10.4%20PostgreSQL/webapps/xwiki/WEB-INF/lib/guice-5.1.0-classes.jar) WARNING: Please consider reporting this to the maintainers of class com.google.inject.internal.aop.HiddenClassDefiner WARNING: sun.misc.Unsafe::staticFieldBase will be removed in a future release
Reproduced only on Jetty, it seems:
WARNING: A restricted method in java.lang.foreign.MemorySegment has been called WARNING: java.lang.foreign.MemorySegment::reinterpret has been called by org.infinispan.commons.jdkspecific.UnsafeMemoryAddressOffHeapMemory in an unnamed module (file:/D:/Win%2010%20Backup/LUCRU_D/XWIKI%2017.10.4/xwiki-platform-distribution-flavor-jetty-hsqldb-17.10.4%20STD/webapps/xwiki/WEB-INF/lib/infinispan-commons-15.2.6.Final.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
The stacktraces are not displayed when using Java 21.