The server does not use super-source, no, that is only for the compiler to 
read, use that source in place of whatever else is on the classpath. The 
server doesn't run source at all, but uses compiled JVM bytecode.

GWT-RPC uses reflection to read/write object fields - you will need to 
either do the add-opens that it requested, or write a CustomFieldSerializer 
type that handles assigning any/all fields you think are appropriate - by 
their setters of course, since you probably don't want to use reflection 
there either.
On Friday, February 7, 2025 at 10:42:47 AM UTC-6 [email protected] 
wrote:

> Hello all:
>
> I have a super source version of java.awt.Color, it is simple and
> has one field, a String to hold the color value.
>
> When I try to do an RPC call to get a class which uses java.awt.Color,
> I get this error on the server:
>
> org.apache.catalina.core.ApplicationContext.log Exception while
> dispatching incoming RPC call
> java.lang.reflect.InaccessibleObjectException: Unable to make field
> private java.awt.color.ColorSpace java.awt.Color.cs accessible: module
> java.desktop does not "opens java.awt" to unnamed module @2f896e3c
>
>
> It looks like the server is using the non super-source version of the
> class.
>
> Is there a way to tell it use the super-source version of the class?
>
> Thank you,
> Neil
>
> --
> Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com
> We offer 30 year loans on single family houses!
>

-- 
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/google-web-toolkit/c69e2be7-ab66-4706-a543-84384bfcfdben%40googlegroups.com.

Reply via email to