Title: [2120] trunk/xstream/src/test/com/thoughtworks/xstream/io/json/JettisonMappedXmlDriverTest.java: Make Java 1.4 compatible.
Revision
2120
Author
joehni
Date
2013-09-17 17:50:20 -0500 (Tue, 17 Sep 2013)

Log Message

Make Java 1.4 compatible.

Modified Paths


Diff

Modified: trunk/xstream/src/test/com/thoughtworks/xstream/io/json/JettisonMappedXmlDriverTest.java (2119 => 2120)


--- trunk/xstream/src/test/com/thoughtworks/xstream/io/json/JettisonMappedXmlDriverTest.java	2013-09-17 22:29:49 UTC (rev 2119)
+++ trunk/xstream/src/test/com/thoughtworks/xstream/io/json/JettisonMappedXmlDriverTest.java	2013-09-17 22:50:20 UTC (rev 2120)
@@ -89,7 +89,7 @@
             Method setTypeConverter = Configuration.class.getMethod(
                 "setTypeConverter", new Class[]{typeConverter.getClass().getInterfaces()[0]});
             Configuration config = new Configuration();
-            setTypeConverter.invoke(config, typeConverter);
+            setTypeConverter.invoke(config, new Object[]{typeConverter});
             xstream = new XStream(new JettisonMappedXmlDriver(config));
             xstream.alias("product", Product.class);
             Product product = new Product("Banana", "123", 23.00);

To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to