Currently no because removing a method
may cause binary incompatibility (it is usually
However, if you really need this, I will add it
to Javassist 3.0, which will be released soon.
Can you tell me why you need it? For
reducing the size of a class file?
I really need this, because I am developing a Java class stub generation tool, that is, the result of the removal of all private class members and the removal of the implementation of all public methods.
So I will not have compatibility problems.
I am looking for a tool to help me in this challenge.
Thanks for the answer.
PS: I sent que question with another user login.
But for that purpose, it might be simpler
to create a new empty class and copy
all public members from the original
to the stub class.