JBoss Community

Javassist in Android : get in ClassPool not working ?

created by julian_j in Javassist - View the full discussion

Hello,

 

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 ?

 

Julian

Reply to this message by going to Community

Start a new discussion in Javassist at Community