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

Key: XFIRE-276
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Dan Diephouse
Reporter: Yoav Landman
Votes: 0
Watchers: 1
Operations

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

CollectionType outputs empty collection element tag before element values

Created: 21/Feb/06 03:32 AM   Updated: 21/Feb/06 05:15 PM
Component/s: Aegis Module
Affects Version/s: 1.0-RC, 1.0
Fix Version/s: 1.0

Time Tracking:
Not Specified


 Description  « Hide
When serializing collection the CollectionType outputs an empty element with the collection type name before the collection elements properties.
E.g. Instead of getting this:
<types>
    <type>
      <description>desc</description>
    </type>
</types>

I am getting this:

<types>
    <type/>
      <description>desc</description>
</types>

I managed to solve this by changing line 100 of CollectionType to:

type.writeObject(itr.next(), *cwriter*, context);


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Dan Diephouse - 21/Feb/06 09:23 AM
Thats bizarre... I will check into this. Thanks.

Dan Diephouse - 21/Feb/06 05:15 PM
OK, I committed your fix in CVS. Thanks for the contribution! I suspect this was only manifested on certain stax implementations because all the MessageWriters share the same XMLStreamReader. Which is why we never saw it before.