Title: [2156] trunk/xstream/src/java/com/thoughtworks/xstream/core/JVM.java: Ensure that the reflection provider actually works.
Revision
2156
Author
joehni
Date
2013-11-26 17:02:56 -0600 (Tue, 26 Nov 2013)

Log Message

Ensure that the reflection provider actually works.

Modified Paths


Diff

Modified: trunk/xstream/src/java/com/thoughtworks/xstream/core/JVM.java (2155 => 2156)


--- trunk/xstream/src/java/com/thoughtworks/xstream/core/JVM.java	2013-11-26 22:55:20 UTC (rev 2155)
+++ trunk/xstream/src/java/com/thoughtworks/xstream/core/JVM.java	2013-11-26 23:02:56 UTC (rev 2156)
@@ -112,7 +112,8 @@
             Class cls = loadClassForName("com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider");
             if (cls != null) {
                 try {
-                    DependencyInjectionFactory.newInstance(cls, null);
+                    ReflectionProvider provider = (ReflectionProvider)DependencyInjectionFactory.newInstance(cls, null);
+                    provider.newInstance(JVM.class);
                     type = cls;
                 } catch (ObjectAccessException e) {
                 }

To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to