1 Reply Latest reply on Oct 13, 2003 7:36 AM by chiba

    Field modification

    jdundon

      Is it possible with Javassist to modify an existing field so that a method is called when the field is accessed or changed?

        • 1. Re: Field modification
          chiba

          You can replace the code for accessing a field
          (i.e. client-side code) with the code for calling
          a method.

          See javassist.expr.ExprEditor for details.