Tuesday, July 27, 2010

client-side deserialization issue of bytecode enhanced classes in dev mode

Hello,

I have a problem in dev mode.
I've made a set of domain classes client-side compatible (the java 2
javascript compiler reports no error).
When I get an instance of a class in the server, it's via jibx. jibx
uses bytecode enhancement in a post-compilation phase, and adds some
fields to the enhanced classes.

So, when I get an instance via jibx, I have "hidden fields" added by
jibx. Example: jibx_sourceLine.

In dev mode, the instance seems to correctly "serialize", but there's
a problem when "deserializing" : the field added by jibx at bytecode
enhancement time has no "counter-part", since it's not in the java
source code of the instance's class.

Moreover, I don't care about these jibx fields in the client side.
They could as well be discarded by the serializer/deserializer
mechanisms, I don't care.


Do you have any idea to help me solve my issue ?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate