【发布时间】:2018-04-28 01:31:33
【问题描述】:
我正在使用 Apache POI 处理 excel 文件,从 Java 9 开始,我收到了这条消息,根据这篇文章 JDK9: An illegal reflective access operation has occurred. org.python.core.PySystemState,我们应该等待开发人员解决这个问题,但我应该把它留在我的新生产版本?我认为如果我跳过警告应该没有问题。
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.poi.util.DocumentHelper (file:/T:/Workspace/Java/Sections%20Manager/libs/poi/poi-ooxml-3.17.jar) to method com.sun.org.apache.xerces.internal.util.SecurityManager.setEntityExpansionLimit(int)
WARNING: Please consider reporting this to the maintainers of org.apache.poi.util.DocumentHelper
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
【问题讨论】:
-
只是了解 Java 9 支持以及是否可以使用夜间构建 - apache-poi.1045710.n5.nabble.com/…。无论如何,是否继续执行这些警告是您的决定,我们其他人可以根据您希望在生产中使用此类代码的时间和目的来添加我们的意见。
-
如果我是你,那么我至少会在 Apache POI 问题跟踪器中创建一个错误(假设还没有错误)。
标签: java apache-poi java-9