-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
WARNING: Illegal reflective access by com.google.gson.internal.reflect.ReflectionHelper #2506
Comments
Gson currently does not have built-in adapters for
Do you mean you have created a custom Could you please try to reduce this to a small self-contained example and provide the code here (or create a demo repository if necessary)? Also note that there are some third-party extensions to Gson which provide support for |
Hello, first of all, thank you for your prompt response. I haven't encountered a structure like To make the warning clearer, I prepared a demo application. You can perform your tests with this demo application and provide feedback. If you'd like, you can set up the |
Your classes use A Gson
Maybe it would be easiest if you used a third-party library which adds support for this to Gson, such as https://github.com/gkopff/gson-javatime-serialisers mentioned above (though I cannot make any guarantees about how well it works). They have created these custom I hope this answer wasn't too verbose. I will close this issue since |
Gson version
We are using Gson version is
2.10.1
Java version
Java11
Used tools
In our Spring application, we are receiving a warning as follows. We were hoping not to encounter such an error without any additional development on this issue because there have been issues opened on this topic before. Even though we applied the solution shared in issue #2220, it did not help in any way to resolve this warning. Can you provide a concrete solution or suggestion to address this issue?
The text was updated successfully, but these errors were encountered: