Lines Matching defs:proxy
26 * @summary This is a basic functional test of the dynamic proxy API (part 1).
42 "\nBasic functional test of dynamic proxy API, part 1\n");
51 * Generate a proxy class.
54 System.err.println("+ generated proxy class: " + proxyClass);
61 "+ proxy class's modifiers: " + Modifier.toString(flags));
63 throw new RuntimeException("proxy class in not public");
66 throw new RuntimeException("proxy class in not final");
69 throw new RuntimeException("proxy class in abstract");
73 * Verify that it is assignable to the proxy interfaces.
78 "proxy class not assignable to proxy interface " +
88 System.err.println("+ proxy class's interfaces: " + l2);
91 "proxy class interfaces are " + l2 +
96 * Verify that system agress that it is a proxy class.
104 "Proxy.isProxyClass returned false for proxy class");
111 System.err.println("+ proxy class's protection domain: " + pd);
114 "proxy class does not have AllPermission");
137 * Construct a proxy instance.
140 Object proxy = cons.newInstance(handler);
141 handler.currentProxy = proxy;
144 * Invoke a method on a proxy instance.
147 ((Runnable) proxy).run();
150 "proxy method invocation failure (lastMethod = " +
168 public Object invoke(Object proxy, Method method, Object[] args)
171 if (proxy != currentProxy) {
173 "wrong proxy instance passed to invoke method");