BlazeDS - Conversion from ArrayList <BaseClass> on java side to Actionscript
Posted
by user294280
on Stack Overflow
See other posts from Stack Overflow
or by user294280
Published on 2010-03-15T21:04:08Z
Indexed on
2010/03/16
8:36 UTC
Read the original article
Hit count: 732
Hi,
So we have a java class with two ArrayLists of generics. It looks like
public class Blah
{
public ArrayList<ConcreteClass> a;
public ArrayList<BaseClass> b;
}
by using [ArrayElementType('ConcreteClass')] in the actionscript class, we are able to get all the "a"s converted fine. However with "b", since the actual class coming across the line is a heterogeneous mix of classes like BaseClassImplementation1, BaseClassImplementation2 etc, it gets typed as an object. Is there a way to convert it to the specific concrete class assuming that a strongly typed AS version of the java class exists on the client side
thanks for your help! Regis
© Stack Overflow or respective owner