I'm new with Javassist. I try to integrate it in Android (2.2) for my master thesis.
The problem is that the find() and the get() methods from the ClassPool always return either null (for find) or throw a NotFoundException (for get) when I try to get some user class. I inspected the source code of both methods, but everything seems good (but the classloading mechanisms are still complex for me ...)
I also tried to play with the importPackage(), appendClassPath() and appendSystemPath() methods of the ClassPool, but the problem is still the same: Javassist is not able to find the classes of my application.
I wonder if the source comes from the Dalvik, and if I can do something to overcome it.
Any Idea ?
Dalvaik uses a totally different class file format, and totally different bytecode to java (It's a register based VM, rather than a stack based one). Javassist will not work with Dalvik.