Legal post migration TODOs (Gson, module access)
- Unit test refactoring is required, to remove --add-opens params from build run args.
<argLine>--add-opens java.base/java.lang=ALL-UNNAMED</argLine>
- Gson usage should be revised and refactored, currently, issue is mitigated with run args:
--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED
But without it, Azure and GC modules met such issues:
legal.app: Error when publishing legaltag status change to pubsub
com.google.gson.JsonIOException: Failed making field 'java.lang.Enum#name' accessible; either change its visibility or write a custom TypeAdapter for its declaring type
at com.google.gson.internal.reflect.ReflectionHelper.makeAccessible(ReflectionHelper.java:23)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:203)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:112)
at com.google.gson.Gson.getAdapter(Gson.java:531)