Unsafe.invokeCleaner usage in CleanerUtil triggers a warning with Java 25:
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::invokeCleaner has been called by org.apache.poi.poifs.nio.CleanerUtil (file:~/.m2/repository/org/apache/poi/poi/5.5.1/poi-5.5.1.jar)
WARNING: Please consider reporting this to the maintainers of class org.apache.poi.poifs.nio.CleanerUtil
WARNING: sun.misc.Unsafe::invokeCleaner will be removed in a future release
The code in CleanerUtil comes from Hadoop and Lucene. Hadoop still uses the same version but Lucene upgraded it in 2022 (apache/lucene#912, apache/lucene@3b9c728) to use the Foreign Function & Memory API (JEP 454).
Would it be possible to update CleanerUtil to also use the FFM API on Java 22 and later?
Unsafe.invokeCleaner usage in CleanerUtil triggers a warning with Java 25:
The code in CleanerUtil comes from Hadoop and Lucene. Hadoop still uses the same version but Lucene upgraded it in 2022 (apache/lucene#912, apache/lucene@3b9c728) to use the Foreign Function & Memory API (JEP 454).
Would it be possible to update CleanerUtil to also use the FFM API on Java 22 and later?