XStream
  1. XStream
  2. XSTR-177

set classloader for JavaMethodConverter in DefaultConverterLookup

    Details

    • Type: Improvement Improvement
    • Status: Closed 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

        People

        • Assignee:
          Unassigned
          Reporter:
          neoedmund
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: