XStream
  1. XStream
  2. XSTR-82

serialize objects of type: primitive class

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.1
    • Component/s: Converters
    • Labels:
      None

      Description

      need to identify objects of type primitive class in:

      com.thoughtworks.xstream.converters.extended.JavaClassConverter

      protected Object fromString(String str) {
      try

      { return //*******add this stuff: str.equals("byte") ? byte.class : str.equals("int") ? int.class : str.equals("long") ? long.class : str.equals("float") ? float.class : str.equals("boolean") ? boolean.class : str.equals("double") ? double.class : str.equals("char") ? char.class : //*******up to here... classLoader.loadClass(str); }

      catch (ClassNotFoundException e)

      { throw new ConversionException("Cannot load java class " + str, e); }

      }

        People

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

          Dates

          • Created:
            Updated:
            Resolved: