close issue#270

This commit is contained in:
LingCoder
2019-10-09 09:24:34 +08:00
parent 626b7b53b3
commit 10b84275d4

View File

@@ -1505,7 +1505,7 @@ class SimpleDynamicProxy {
// Insert a proxy and call again:
Interface proxy = (Interface)Proxy.newProxyInstance(
Interface.class.getClassLoader(),
new Class,
new Class[]{ Interface.class },
new DynamicProxyHandler(real));
consumer(proxy);
}
@@ -1582,7 +1582,7 @@ class SelectingMethods {
SomeMethods proxy =
(SomeMethods)Proxy.newProxyInstance(
SomeMethods.class.getClassLoader(),
new Class,
new Class[]{ Interface.class },
new MethodSelector(new Implementation()));
proxy.boring1();
proxy.boring2();