jboss-javassist/javassist — pull request #18 by stephanenicolas (2014-09-03 22:39:22+00:00)
Title: Update CtClassType.java

Following our conversation by mail, I send you a pull request that allows to use the ClassPool to load annotation types.

The problem I have is that the current implementation only uses the ClassPool's classloader, and this class loader is not aware (in my case) of the types known by the ClassPool itself. This feature is reall important for some of the projects you can find here : https://github.com/stephanenicolas/injects/.

My main concern is to get a configuration free plugin for Transforming Android classes during gradle builds and the current implementation of Javassist for loading classes would require an extra configuration, a bit difficult, to the end users to make sure the plugin knows about the annotations they use (which is not only complex but really awkward as other classes are loaded fine).

I can rework the PR to your convenience as I would really appreciate to get that merged in next release.