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();