Skip to content

Commit 10b8427

Browse files
committed
close issue#270
1 parent 626b7b5 commit 10b8427

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/book/19-Type-Information.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,7 +1505,7 @@ class SimpleDynamicProxy {
15051505
// Insert a proxy and call again:
15061506
Interface proxy = (Interface)Proxy.newProxyInstance(
15071507
Interface.class.getClassLoader(),
1508-
new Class,
1508+
new Class[]{ Interface.class },
15091509
new DynamicProxyHandler(real));
15101510
consumer(proxy);
15111511
}
@@ -1582,7 +1582,7 @@ class SelectingMethods {
15821582
SomeMethods proxy =
15831583
(SomeMethods)Proxy.newProxyInstance(
15841584
SomeMethods.class.getClassLoader(),
1585-
new Class,
1585+
new Class[]{ Interface.class },
15861586
new MethodSelector(new Implementation()));
15871587
proxy.boring1();
15881588
proxy.boring2();

0 commit comments

Comments
 (0)