public class JDKRentProxy implements InvocationHandler
public Object getProxy(){ return Proxy.newProxyInstance(this.getClass().getClassLoader(),rent.getClass().getInterfaces(),this); }
host.getClass().getClassLoader() --sun.misc.Launcher$AppClassLoader@18b4aac2
jdkRentProxy.getClass().getClassLoader() --sun.misc.Launcher$AppClassLoader@18b4aac2
return Proxy.newProxyInstance(this.getClass().getClassLoader(),rent.getClass().getInterfaces(),this);
this.getClass().getClassLoader() --sun.misc.Launcher$AppClassLoader@18b4aac2
不同类的类加载器是相同的吗?JDK动态代理的this.getClass().getClassLoader() 不是代理类的类加载器吗?
请问,这里如何理解呢?