Thursday, November 2, 2023

Re: Illegal reflective access in RPC serializer


The workaround is to use --add-opens but this basically open the full java.util package for reflection which is not ideal. I also tried to replace the custom serializer, but due to the way custom serializers are loaded (using the exact package name), this doesn't seems possible without compiling a custom jar.

You can copy the file and put it into your source directory. However you must also make sure that the serializer is deployed on server side and not only compiled to JavaScript. Serializers supplied by GWT are in gwt-user.jar (for JS compilation) and in gwt-servlet.jar (server). The easiest solution is to fork GWT itself, apply the patch and build your own GWT SDK for now.

 There is a plan to release 2.11 but no concrete time frame: https://groups.google.com/g/google-web-toolkit-contributors/c/JfIAPN6XFCo

-- J.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/2e475bfa-4022-450a-9a4d-652c321ade34n%40googlegroups.com.

No comments:

Post a Comment