
| Key: |
XSTR-50
|
| Type: |
New Feature
|
| Status: |
Closed
|
| Resolution: |
Fixed
|
| Priority: |
Minor
|
| Assignee: |
Unassigned
|
| Reporter: |
ben
|
| Votes: |
0
|
| Watchers: |
0
|
|
If you were logged in you would be able to see more operations.
|
|
|
XStream
Created: 29/Apr/04 09:32 PM
Updated: 07/Aug/06 09:34 PM
|
|
| Component/s: |
Converters
|
| Affects Version/s: |
0.6
|
| Fix Version/s: |
1.2
|
|
|
Issue Links:
|
Related
|
|
This issue relates to:
|
|
XSTR-286
XStream should provide helpful exception if serializing itself
|
|
|
|
|
|
Supercedes
|
|
This issue supercedes:
|
|
XSTR-227
Load xstream alias by xml config file
|
|
|
|
|
|
|
|
|
Serialising the state of xstream so you can have the same mode of deserialisation at a separate point in time may be important for many applications. This is currently not possible (javaClassConverter is the cause i think).
import com.thoughtworks.xstream.*;
import junit.framework.*;
public class XStreamTesting extends TestCase{
/**
*
*/
public XStreamTesting() {
super("");
}
public void testXStreamSelf(){
XStream stream = new XStream();
stream.setMode(XStream.XPATH_REFERENCES);
System.out.println(stream.toXML(stream));
XStream newStream = (XStream)stream.fromXML(stream.toXML(stream));
}
}
|
|
Description
|
Serialising the state of xstream so you can have the same mode of deserialisation at a separate point in time may be important for many applications. This is currently not possible (javaClassConverter is the cause i think).
import com.thoughtworks.xstream.*;
import junit.framework.*;
public class XStreamTesting extends TestCase{
/**
*
*/
public XStreamTesting() {
super("");
}
public void testXStreamSelf(){
XStream stream = new XStream();
stream.setMode(XStream.XPATH_REFERENCES);
System.out.println(stream.toXML(stream));
XStream newStream = (XStream)stream.fromXML(stream.toXML(stream));
}
} |
Show » |
|
However, I see no reason why one XStream instance cannot serialize another XStream instance.