Details
-
Type: Bug
-
Status: Closed
-
Priority: Minor
-
Resolution: Incomplete
-
Affects Version/s: 1.2.2
-
Fix Version/s: None
-
Component/s: Annotations
-
Labels:None
-
JDK version and platform:sun 1.6.0_02 for Windows
Description
This doesn't work; the poolFactory is still showing up in the output:
@XStreamOmitField
private final Factory poolFactory = new Factory() {
public Object create()
};
Adding omitField to the code makes it go away:
public void setUp() throws Exception {
xstream = new XStream();
xstream.setMode(XStream.ID_REFERENCES);
xstream.registerConverter(new CollectionConverter(xstream.getMapper()) {
@Override
public boolean canConvert(final Class type)
});
xstream.omitField(Photo.class, "poolFactory");
}
Hi Rusty,
unfortunately you give not enough information for me to reproduce this. What it the Photo.class? What has it to do with your converter handling LazyList? How do you call the XStream instance? What is the output?
Please provide more information - or better a small unit test. Then feel free to reopen this issue again.