Actionscript 3.0 code generation of collection types not working correctly?

Hi all,

I’m trying to generate both Java and Actionscript 3.0 objects from my UML.

The Java to UML (and back to Java) roundtrips work perfectly:

Two simple classes:

import java.util.Collection;


public class Person {

	private Collection<Address> addresses;	
	
}

and

public class Address {
	
}

generating uml from this look good and also generates the correct java code

http://www.appletree.be/temp/umltemp.jpg

When I generate ActionScript 3 code though I get:

public class Person 
{
	private var _addresses:Address;
}

and


public class Address 
{
}

So in actionscript a person can have only 1 address instead of multiple addresses (in an ArrayCollection or something similar).

Am I doing something wrong or if this feature not implemented in the software?

Thanks, would appreciate any advice or comments.

Kind regards,

Jochen

Hi Jochen,

Thanks for your post. I’ve forwarded the issue to our engineers to follow-up, and I’ll let you know if there is any feedback.

Best regards,
Lilian Wong