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

Key: XSTR-286
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Assignee: Unassigned
Reporter: Joe Walnes
Votes: 0
Watchers: 0
Operations

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

XStream should provide helpful exception if serializing itself

Created: 22/Mar/06 10:38 AM   Updated: 31/Jul/06 05:28 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.2

Issue Links:
Related
 


 Description  « Hide
Currently XStream cannot serialize itself as it's internal state is changing whilst serialization occurs (see XSTR-50).

When this happens a ConcurrentModificationException is thrown but it is not clear why to users. I would like XStream to detect if itself is being serialized (or any of its internal classes such as mappers) and throw an easy to understand exception (such as XStreamCannotSerializeItselfException).

Note, it should be possible for XStream to serialize other instances of other XStreams.


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Joerg Schaible - 22/Mar/06 03:44 PM
well, in the end it should be able to serialize itself ...

Joerg Schaible - 28/Mar/06 04:36 PM
XStream throws now a ConversionException with an appropriate message.

Guilherme Silveira - 31/Jul/06 05:22 PM
moving to 1.2