1 Reply Latest reply on May 31, 2005 4:02 AM by Shigeru Chiba

    getting all fields of a class

    Gunnar Hilling Newbie


      I'm just building a small persistence framework and I'm running into trouble using the CtClass.getFields()-Method and the FieldExpr-Replacer:
      It seems not to be possible to get all fields including private or protected fields from base classes. Is there some standard way to resolve this problem or do I have to run through the class hierarchy recursively (might even be the cleaner solution ...)?