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
InacessibleObjectException under JDK 16 #127
Comments
@3xpl0itz Thanks for contacting us! Let me take a look at it and get back to you in a few days. |
@3xpl0itz Sorry for the late answer. Based on the error message it is related to gson, the they have a similar issue: google/gson#1875 |
Sounds good! Appreciate you looking into it. |
The java core was just updated to pull in the latest version of gson (2.8.9) to address a security vulnerability. |
Hi, just checked; still getting the same "module java.base does not "opens java.lang" to unnamed module." |
FWIW Java 16 changed default behaviour for these cases from In Java 17 the As it says in the JEP 261 that I linked to; breaking encapsulation should be used with care and an understanding of the risks. However, until the ecosystem catches up with the module changes it can provide a workaround to these problems. See also IBM/cloudant-java-sdk#114 (comment) |
Yes, @ricellis's approach is a good workaround for now. |
I've already filed an issue report under the watson developer cloud SDK, but it seems like the issue has to do with the actual core SDK.
See more details below:
watson-developer-cloud/java-sdk#1171
The text was updated successfully, but these errors were encountered: