ãã®ã³ã¼ããéããªãã®ã§ã import java.lang.reflect.*; interface A { public String a(); } class A2 { public String a(){return "A2";} } public class Fuga { public static void main(String[] args) throws Throwable{ final A2 a2 = new A2(); Class<?>[] interfaces = {A.class}; A proxyA = (A)Proxy.newProxyInstance(Thread.currentThread().getContextClassLoader(), interfaces, new InvocationHandler(){ public Object invoke
{{#tags}}- {{label}}
{{/tags}}