java9及以上版本使用报错:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.thoughtworks.xstream.core.util.Fields (file:/Users/duanhongyi/.m2/repository/com/thoughtworks/xstream/xstream/1.4.10/xstream-1.4.10.jar) to field java.util.TreeMap.comparator
WARNING: Please consider reporting this to the maintainers of com.thoughtworks.xstream.core.util.Fields
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
将来是否有计划替换掉xstream?
博客指出Java 9及以上版本使用时出现反射访问报错,提示非法反射操作,如com.thoughtworks.xstream.core.util.Fields对java.util.TreeMap.comparator的访问。还提及未来版本将拒绝所有非法访问操作,并询问是否有计划替换xstream。
349

被折叠的 条评论
为什么被折叠?



