NorbertSandor / gwt-ent

Automatically exported from code.google.com/p/gwt-ent
0 stars 0 forks source link

Anonymous subclasses do not generate reflection info using @Reflectable(assignableClasses = true) #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a class with @Reflectable(assignableClasses = true)
2. Create an anonymous class extending the previous class
3. Serialize the child class

What do you see instead?
ReflectionRequiredException

What version of the product are you using? On what operating system?
Ubuntu, gwt 2.0.3 , gwtent 0.7.1

Original issue reported on code.google.com by ahha...@gmail.com on 23 Jun 2010 at 7:20

GoogleCodeExporter commented 9 years ago
Hi, Ahhatem. I think for now this can not be done. But I make a change in 
serialize system.
Now you can using JsonSerializer.serializeObject(Object object, ClassType type)
You can pass your ClassType, this should fix your problem.

serializeObject(Object object, ClassType type) comes from 
DataContractReflectionSerializer

Original comment by JamesLuo...@gmail.com on 28 Jun 2010 at 12:03

GoogleCodeExporter commented 9 years ago
Great... thanks a lot.

Original comment by ahha...@gmail.com on 28 Jun 2010 at 12:11