Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.4
-
Fix Version/s: 1.4.1
-
Component/s: None
-
Labels:None
-
JDK version and platform:OpenJDK 1.60_22 (Linux)
Description
The following test fails with a stacktrace if xstream.jar, xmlpull.jar and kxml2-min.jar are present on classpath.
import com.thoughtworks.xstream.XStream;
public class Test {
private String test;
public static void main(String[] args)
{ new XStream().fromXML("<Test><name>Test</name></Test>"); }}
Exception in thread "main"
com.thoughtworks.xstream.io.StreamException: Cannot create
XmlPullParser
at com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:60)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:895)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:886)
at Test.main(Test.java:8)
Actually XStream refers in HEAD now XmlPull also as standard dependency and the default parser is back to Xpp3.