I'm trying to see why I'm getting "WARNING: An illegal reflective access operation has occurred" I want to get rid of the those warnings before that first I want to check how may places it is actually happening in my code.Because I have read that
"The first reflective-access operation to any such package causes a warning to be issued, but no warnings are issued after that point. This single warning describes how to enable further warnings. This warning cannot be suppressed."
So to get the further warnings
So I mentioned --illegal-access=deny along with --add-exports options in IntelliJ.
<option name="ADDITIONAL_OPTIONS_OVERRIDE">
<module name="XXX" options="--illegal-access=deny --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED" />
</option>
Then I got Error:java: error: invalid flag: --illegal-access=deny
These are the warnings
WARNING: Illegal reflective access by com.thoughtworks.xstream.core.util.Fields (file:xxx/xxx/xxx/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