Hi,
 
Another point on the difference between handling List and Arrays. Currently in the ArraySerializer, in case the object is array, it verify it's type using the Class.getComponentType() call. This, will return the Array declared type, not nescessarily the real object in the array. While handling a list, it always assume its from a type Object.class.
 
This difference in my case, causes some problems, since the array is from the Interface type, the objects implements, which forces me to register the interface as well the Impl object as a bean .
 
Why not in the ArraySerializer.serialize method always to assign :
                componentType = Object.class;
 
thanks,
 
Amit.

Reply via email to