MX. Collections. arraycollection;
PublicClassArrayobject
{
Public var arrayvalue: array;
Public var collectionvalue: arraycollection;
Public Function arrayobject ()
{
}
}
}
Receiving analysis:
1. Because the receiver uses AMF and the compression is carried by default, the basic types, binary and array types of flash transmission cannot be parsed and only objects can be received.
2. the receiver uses Java. newinstance () must be a public pojo class and cannot be embedded into other classes.
3. In addition to the public field, Java pojo must also have GetSet. Otherwise, beanmap cannot find the corresponding property.
4. arraycollection-> JAVA: arraycollection
5. bytearray-> byte []
6. array-> object []
7. Because Java does not support generic parameter acquisition types, collection cannot be implemented.
8. arraylist. toarray () = object [], cannot be converted to a specific XXX [], leading to the loss of class information during deserialization and the inability to map arrays to Java objects.
9. The flash recipient uses bytearray. readobject. Previously, registeralias was called to implement a strong transformation of flash.
Http://www.adobe.us/livedocs/flex/3_cn/langref/flash/net/package.html#registerClassAlias ()
10. If Java receives the package with AMF, the problem of sticking to the package may occur.
Http://bbs.9ria.com/viewthread.php? Tid = 45637
Http://bbs.9ria.com/viewthread.php? Action = printable & tid = 46012
Testcase:
Serialize --------------
1. valueobject-pass
2. objectobject-pass
3. arrayobject-pass
Deserialize --------------
1. valueobject-pass
2. objectobject-pass
3. arrayobject-pass