Getting removeMethod to work

"Eduardo S. Cordeiro" <[email protected]> Wed, 25 Jan 2006 19:23:38 -0300
Newsgroups gmane.comp.jakarta.bcel.user
Message-ID <[email protected]>
Hello there.

I am attempting to remove a few methods from class using BCEL. This is 
the final part of a larger program which loads a given classfile and 
performs a few analises on it in order to determine which methods to 
remove. As part of these analises, I have been able to remove and insert 
instructions in Method's, and that seems to work fine using a MethodGen. 
I was trying the same approach with ClassGen, but that doesn't seem to 
work: no error messages or exceptions appear, nor are the  methods are 
removed from the class.

Is there a special detail regarding this in the BCEL API that I have missed?

Regards,

Eduardo Cordeiro