0 Replies Latest reply on May 20, 2005 4:09 AM by hengels

    BUG in CtClassType->doCompaction

    hengels

      Hi,

      I found another bug in javaassist. The workaround is to comment out the call to doCompaction in CtClassType->getClassFile2

      The problem is, that the method doCompaction calls CtClassType->isModified in
      order to check, if a class can be removed from the cache. isModified returns
      the field "wasChanged" and this isn't updated on changes (see method
      checkModify).

      So, what actually happens is that modified classes are pruned from the cache and
      thus, the modifications get lost. This is the reason, why the compiler can't
      find renamed original methods when compiling wrapper methods during instrumentation with jboss aop.

      could you please have a look at this issue and furthermore, could you please apply my patch for the tokenizer (see http://www.jboss.org/index.html?module=bb&op=viewtopic&t=64091).

      Thanks,

      Holger