From: hengels <nu...@jb...> - 2005-05-20 07:58:56
|
Hi Kabir, thanks for your help. finally I managed to localize the bug in javaassist. The workaround is to comment out the call to doCompaction in CtClassType->getClassFile2 The reson 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". The latter 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 couldn't find the renamed method. Regards, Holger View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3878518#3878518 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3878518 |