Details
-
Type: Improvement
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.1.1
-
Component/s: None
-
Labels:None
-
JDK version and platform:Sun 1.4.1_03 for Windows
Description
xstream-1.1
DefaultConverterLookup.java
Method: setupDefaults()
Line: 237
registerConverter(new JavaMethodConverter());
i think should be changed like this:
registerConverter(new JavaMethodConverter(classLoader));
because it is just like JavaClassConverter, and JavaClassConverter has
set the default classLoader.
Otherwise when invoking the JavaMethodConverter an "ClassNotFoundException" will occur if the class is loaded by a customized classLoader.
am i right?
- neo
Yes, you're right. And I've already fixed this for the 1.1.1 release.
Thanks
-Joe