Hardy Ferentschik commented on Bug HV-603

+1 for using the class loader of the annotation type, but I still would use a privileged action:

ClassLoader classLoader = ReflectionHelper.getClassLoaderFromClass(descriptor.type());
Class<T> proxyClass = ( Class<T> ) Proxy.getProxyClass( classLoader, descriptor.type() );
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira