History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: XFIRE-89
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Dan Diephouse
Reporter: Dan Diephouse
Votes: 3
Watchers: 1
Operations

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

Support recursive collections

Created: 13/Jun/05 11:34 PM   Updated: 02/Sep/06 10:58 PM
Component/s: None
Affects Version/s: 1.0-M5
Fix Version/s: 1.2.1

Time Tracking:
Not Specified

File Attachments: 1. Zip Archive xfire.zip (9 kb)
2. PDF File xfire_modif.pdf (92 kb)



 Description  « Hide
We need to support:

public <Collection <Collection<String>> doSomething();



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
julien chambert - 31/Aug/06 08:39 AM
I manage to handle map of collection changing the code.
With this mail, I join a summary of the modification and the code of the modified classes.

Normaly, collection of map or collection should works but they are not tested.the map of collection seems to work fine.

files:
xfire.zip :sources
xfire_modif.pdf : explains the code modifications


Dan Diephouse - 02/Sep/06 02:11 PM
Hi Julien, thanks for the patch, but unfortunately I don't think we can accept it won't run on java 1.4. I'm going to see if I can come up with an alternate solution today though.

Dan Diephouse - 02/Sep/06 07:17 PM
I have a solution in SVN now which works on Java 5. Still working on the 1.4 part of things though!

Dan Diephouse - 02/Sep/06 10:58 PM
I'm very happy to say that this issue is finally closed. Generics are supported (Collection<Collection<Foo>>) as is Java 1.4 via a syntax like so:

<method name="getListofListofDoubles">
<return-type componentType="#someDoubles" typeName="LotsOfDoubles"/>
</method>
<component name="someDoubles" class="java.util.List" typeName="SomeDoubles" componentType="java.lang.Double" />

Documentation is forthcoming.