Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java9及以上版本禁用非法反射问题 #1551

Closed
duanhongyi opened this issue May 8, 2020 · 4 comments
Closed

java9及以上版本禁用非法反射问题 #1551

duanhongyi opened this issue May 8, 2020 · 4 comments

Comments

@duanhongyi
Copy link

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

相关讨论在:x-stream/xstream#101

将来是否有计划替换掉xstream?

@binarywang
Copy link
Owner

大概看了下,只是有warning而已,目前没有计划要替换掉。
当然非常欢迎你能提供成熟的替换实现。

@duanhongyi
Copy link
Author

duanhongyi commented May 8, 2020

我简单修改了一下,在我的项目里测试没有警告了。 #1553
@binarywang

@binarywang
Copy link
Owner

#1558

@binarywang
Copy link
Owner

3.7.9.B版本已优化

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants