XFire

Support recursive collections

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0-M5
  • Fix Version/s: 1.2.1
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    2

Description

We need to support:

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

Activity

Hide
julien chambert added a comment -

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

Show
julien chambert added a comment - 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
Hide
Dan Diephouse added a comment -

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.

Show
Dan Diephouse added a comment - 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.
Hide
Dan Diephouse added a comment -

I have a solution in SVN now which works on Java 5. Still working on the 1.4 part of things though!

Show
Dan Diephouse added a comment - I have a solution in SVN now which works on Java 5. Still working on the 1.4 part of things though!
Hide
Dan Diephouse added a comment -

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.

Show
Dan Diephouse added a comment - 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.

People

Vote (3)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: