Issue Details (XML | Word | Printable)

Key: GDS-637
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Franck Wolff
Reporter: Henning Dierolf
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
GraniteDS

(De-)Serialization Array <=> List<String> does not work

Created: 20/Feb/10 10:47 PM   Updated: 07/Apr/10 07:22 PM   Resolved: 07/Apr/10 07:22 PM
Component/s: AMF3 (de)serialization
Affects Version/s: 2.1.0_RC2
Fix Version/s: None

Environment: Google App Engine Java, Flash Builder 4 Beta 2


 Description  « Hide

I have A POJO with various Integers, Floats and .. as well List<String>. If I return such an object what I finally get in AS3 is incomplete.
The AS3 object's properties for the List<String> are NULL. The AS3 class has an Array variable. If I use Vector.<String> in AS3 nothing works at all. It says that some properties on the JAVA object would be marked protected and cannot be accessed. But in fact there is nothing protected.

I don't use "ArrayCollection" or something, because I have to access my persistence object within a loaded SWF (created with CS4 Flash).
But I guess GraniteDS should work with the basic data structures like plain "Array".


William Draï added a comment - 23/Feb/10 06:14 PM
GraniteDS will serialize AS3 Array if the property is an Array on the Java side.
All other collections are by default serialized as ArrayCollections.

You can change this default behaviour by registering in granite-config.xml a Converter/Reverter that will convert all ArrayLists to Arrays.

Franck Wolff added a comment - 07/Apr/10 07:22 PM
No reply...