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

2010-07-27 Thread Deepak Singh
Can i know how you are using jibx binding with gwt ?

On Tue, Jul 27, 2010 at 2:53 PM, lpetit  wrote:

> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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

2010-07-27 Thread lpetit
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.