1 Reply Latest reply on Nov 9, 2010 2:28 PM by Stuart Douglas

    Javassist in Android : 'get' in ClassPool not working ?

    julian_j Newbie

      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