function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
toby curtis 6toby curtis 6 

Illegal reflective access com.thoughtworks.xstream.core(/thoughtworks/xstream/xstream/1.4.22.1) java.util.TreeMap.comparator

I am facing problem with below error.

WARNING: An illegal reflective access operation has occurred.

WARNING: Illegal reflective access by com.thoughtworks.xstream.core.util.Fields (file:/.m2/repository/com/thoughtworks/xstream/xstream/1.4.22.2/xstream-1.4.22.2.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.


How to overcome this issue.
SwethaSwetha (Salesforce Developers) 
HI Toby,
Can you share the steps of the action you are performing to replicate this error message?Thanks

Related:
https://stackoverflow.com/questions/46454995/how-to-hide-warning-illegal-reflective-access-in-java-9-without-jvm-argument/46458447

https://stackoverflow.com/questions/48811990/set-jvm-option-for-avoid-error-illegal-reflective-access-by-org-springframework
toby curtis 6toby curtis 6
Thanks.