From 10b84275d4395c9067d3b2563a33c95383649c00 Mon Sep 17 00:00:00 2001 From: LingCoder Date: Wed, 9 Oct 2019 09:24:34 +0800 Subject: [PATCH] close issue#270 --- docs/book/19-Type-Information.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/book/19-Type-Information.md b/docs/book/19-Type-Information.md index 65c5f0a..3276d24 100644 --- a/docs/book/19-Type-Information.md +++ b/docs/book/19-Type-Information.md @@ -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();