-
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
java 17 support #1963
Comments
Gson will only perform perform illegal access when you try to serialize or deserialize a third-party class without having a custom type adapter specified (and for which no built-in adapter exists). In your case it sounds like you are trying to deserialize Note that I am not a maintainer of this project. |
Thanks! I'll check this out and try to create a type adapter for this class that is use in one of our library. :) |
Please reopen. There definitely should be a built-in type adapter in GSON for types like |
@piegamesde, this issue was specifically about being unable to use reflection for JDK classes. The previous functionality was inherently unreliable because it depended on JDK internals. (This is also related to #469) |
There is now a feature request for proper support for |
Hello!
I try to update an application that use Gson to java 17 this morning and I get the following warning and error :
I was wondering if there was plan to make Gson compatible with java 17 since reflexive call to internal API isn't allowed anymore?
A blog article about the java runtime encapsulation : https://blogs.oracle.com/javamagazine/java-runtime-encapsulation-internals
The text was updated successfully, but these errors were encountered: