mnimer / dphibernate

Automatically exported from code.google.com/p/dphibernate
0 stars 0 forks source link

Converting java.util.Set to mx.collections.ArrayCollection #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Return a java Set object from a remote destination
2. Assign a to a flex variable

var testCollectionConversion:ArrayCollection = (event.result as
ArrayCollection);

What is the expected output? What do you see instead?
Expected testCollectionConversion to be populated with the items from the
Java set.  I get a null value returned.

What version of the product are you using? On what operating system?
Windows XP
dpHibernate-1.0.17

Please provide any additional information below.
I use a work around of wrapping a list around the set before I return it
and it works fine.  Shouldn't have to do that though.  Set is just a list
with no duplications.
http://java.sun.com/javase/6/docs/api/java/util/ArrayList.html#ArrayList(java.ut
il.Collection)

Original issue reported on code.google.com by dam6...@gmail.com on 8 Jan 2009 at 3:34

GoogleCodeExporter commented 9 years ago
Investigate and fix for 2.0

Original comment by martypit...@gtempaccount.com on 15 Mar 2011 at 3:35

GoogleCodeExporter commented 9 years ago

Original comment by martypit...@gtempaccount.com on 15 Mar 2011 at 3:40

GoogleCodeExporter commented 9 years ago
Tested and could not reproduce.

Added unit test.

Original comment by martypit...@gtempaccount.com on 22 Mar 2011 at 1:25