This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-02f74e83-f217-4bdb-99a1-bb851c353b4a XWIKI-24111 Open

Warnings related to restricted or deprecated methods when starting XWiki on Java 25

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-dea0214c-1c83-4bb2-af88-dcec9b9c2417 Ilie Andriuta created this issue on 10/Mar/26 15:00
 
Summary: Warnings related to restricted or deprecated methods when starting XWiki on Java 25
Issue Type: cid:jira-generated-image-avatar-02f74e83-f217-4bdb-99a1-bb851c353b4a Bug
Affects Versions: 17.10.3
Assignee: Unassigned
Created: 10/Mar/26 15:00
Environment: Windows 11 Pro, Edge 145, using an instance of XWiki 17.10.4 on PostgreSQL 17, Tomcat 11, Java 25
Priority: cid:jira-generated-image-static-major-3778b84e-5212-4c35-b1a7-9a32b10b5a16 Major
Reporter: Ilie Andriuta
Description:

Steps to reproduce

  1. Start XWiki (e.g. 17.10.3 and 17.10.4) on Java 25
  2. 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.

 
 

1 update

 
cid:jira-generated-image-avatar-dea0214c-1c83-4bb2-af88-dcec9b9c2417 Changes by Ilie Andriuta on 10/Mar/26 15:00
 
Labels: java