1 Reply Latest reply on Sep 3, 2004 1:36 PM by chiba

    How to delete a class created by javassist?

    mxc4

      Hi there,

      I am using javassist to create a dynamic bean for a result set from a database. The bean is then inserted into a velocity template for processing.

      The name of the dynamic class is simply row. Once the class file is written out the class if frozen and so cannot be modified againl. I can try and load the class from the ClassPool and then call defrost() on it to get it into a modifyable state again. The only question is that each time it is modified it may be for a different resultset so the get and set methods will just continue to grow.

      Is there a way to delete the class file and so start fresh on each iteration?

      thanks
      Mark