3 Replies Latest reply: Jan 25, 2012 5:20 PM by EJP RSS

    Unmarshalling does not initialize super class variables


      I experience a very strange problem while unmarshelling to java object. consider the following example.

      public class Base {
      private boolean status = false;
      private String name = "XXXXXXXX";


      public class Derived extends Base{
      //some fields and methods

      When we unmarshal xml to Derived object then Base class variable should be initialized to default if its values is not supplied into xml.

      Please advice