My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 59: serializing arrays of types with CustomConverters doesn't work using "memberType" annotation
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Apr 2012


 
Reported by j...@antitheorystudio.com, Nov 7, 2011

1.Create and register a CustomConverter for type "A".
2.Create XMLArray annotation for Array of objects of type "A" 
3.Specify memberType parameter of annotation as "A".

The expectation is that the serialization will take place using the registered CustomConverter. This does not happen.

Work-around is to change line 99 of flexxb.xml.serializer.XmlArraySerializer 

from

var stringValue:String=serializer.converterStore.objectToString(member, xmlArray.type);

to

var stringValue:String=serializer.converterStore.objectToString(member, xmlArray.memberType);

Presumably I should be using "type" instead of "memberType" in my XMLArray annotation. This strikes me as odd as everything else works with memberType, and it is specific to the XMLArray class.


Nov 8, 2011
Project Member #1 alex.id....@gmail.com
(No comment was entered for this change.)
Status: Accepted
Labels: Milestone-2.3.1
Apr 14, 2012
Project Member #2 alex.id....@gmail.com
(No comment was entered for this change.)
Status: Fixed

Powered by Google Project Hosting