GuiSai.py ☭
GuiSai.py ☭
JCHJava Community | Help. Code. Learn.
Created by GuiSai.py ☭ on 11/25/2024 in #java-help
com.google.gson.JsonIOException: Failed making field
It looks like having my project as a module is doing silly things with Gson, it can't even access java classes? I cannot do an "opens java.time to com.google.gson"
Caused by: com.google.gson.JsonIOException: Failed making field 'java.time.LocalDate#year' accessible; either increase its visibility or write a custom TypeAdapter for its declaring type.
See https://github.com/google/gson/blob/main/Troubleshooting.md#reflection-inaccessible-to-module-gson
Caused by: com.google.gson.JsonIOException: Failed making field 'java.time.LocalDate#year' accessible; either increase its visibility or write a custom TypeAdapter for its declaring type.
See https://github.com/google/gson/blob/main/Troubleshooting.md#reflection-inaccessible-to-module-gson
4 replies