title: Problems with inheritance in Xstream
body: <p>I have an input xml and corresponding java classes as the following.</p>
  
  <pre><code>&lt;Address&gt;
    &lt;name&gt;name&lt;/name&gt;
    &lt;streetName&gt;street&lt;/streetName&gt;
  &lt;Address&gt;
  
  public class Address {
      private String name;
      //getter and setter here
  }
  
  public class Home extends Address {
      private String streetName;
      // getter and setter follows
  }
  </code></pre>
  
  <p>And I tried to unmarshal the xml like the following</p>
  
  <pre><code>import com.thoughtworks.xstream.XStream;
  
  public class Main {
      public static void main(String as[]) {
          XStream xstream = new XStream();
          String str = "&lt;com.xstream.inheritance.Address&gt; &lt;name&gt;name&lt;/name&gt; &lt;streetName&gt;street&lt;/streetName&gt;"
                  + "&lt;/com.xstream.inheritance.Address&gt;";
          Address address1 = (Address) xstream.fromXML(str);
          System.out.println(address1.getName());
      }
  }
  </code></pre>
  
  <p>I got an exception saying 
  Exception in thread "main" </p>
  
  <pre><code>com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$UnknownFieldException: No such field com.xstream.inheritance.Address.streetName
  ---- Debugging information ----
  field               : streetName
  class               : com.xstream.inheritance.Address
  required-type       : com.xstream.inheritance.Address
  converter-type      : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
  path                : /com.xstream.inheritance.Address/streetName
  version             : null
  </code></pre>
  
  <p>Why did I get this exception?</p>