Gunnar Morling commented on Bug HV-603

Thinking a bit more about this: couldn't we simply use the annotation type's class loader to load the proxy:

Class<T> proxyClass = ( Class<T> ) Proxy.getProxyClass( descriptor.type().getClassLoader(), descriptor.type() );

The documentation for Proxy#getProxyClass() says "All of the interface types must be visible by name through the specified class loader." Since we pass only one interface type, using that interface's loader seems best to me.

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