ebourg opened a new issue, #1180: URL: https://github.com/apache/poi/issues/1180
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](https://github.com/apache/hadoop/blob/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/CleanerUtil.java) and Lucene. Hadoop still uses the same version but Lucene upgraded it in 2022 (https://github.com/apache/lucene/pull/912, https://github.com/apache/lucene/commit/3b9c728ab558255eb8329a017b9d235611d7b142) 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? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
