3 Replies Latest reply on Jun 29, 2006 11:23 PM by Ben Wang

    Inhertance problems

    Gilad Shriki Newbie

      Hi,

      I've got the following classes:

      public class Person {
       protected String first_name;
       protected String last_name;
      ...


      public class User extends Person {
       protected String username;
       protected String password;
       protected Device device;
      ...


      public class Device {
       protected String vendor;
       protected String modelID;
      ...


      When duplicating a User, I get the right values for the Device members, and the local variables of User. The inherited values of Person are not being duplicated.

      I'm running the application on JDK5.0, with the -javaagent parameter
      -javaagent:d:\java\JBC14\lib-50\jboss-aop-jdk50.jar


      The jboss-aop.xml:
      <?xml version="1.0" encoding="UTF-8"?>
      <aop>
       <prepare expr="field(* Device->*)" />
       <prepare expr="field(* $instanceof{Person}->*)" />
      </aop>


      Any help will be appreciated.

      Thanks!
      Gilad.