This is an automated email from the ASF dual-hosted git repository. paulk pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/master by this push: new 318737b Fix typo (closes #1116) 318737b is described below commit 318737bb0ff8947c8fbf15e40ed447a9c8aee161 Author: wangjianan <wangjia...@huawei.com> AuthorDate: Thu Dec 5 17:56:33 2019 +0800 Fix typo (closes #1116) --- src/spec/doc/core-metaprogramming.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spec/doc/core-metaprogramming.adoc b/src/spec/doc/core-metaprogramming.adoc index 449c9e6..265525f 100644 --- a/src/spec/doc/core-metaprogramming.adoc +++ b/src/spec/doc/core-metaprogramming.adoc @@ -423,7 +423,7 @@ assert f.BAR() == "BAR" // the new metaclass routes .BAR() to .bar() and upperca ===== Magic package -It is possible to change the metaclass at startup time by giving the metaclass a specially crafted (magic) class name and package name. In order to change the metaclass for `java.lang.Integer` it's enough to put a class `groovy.runtime.metaclass.java.lang.IntegerMetaClass` in the classpath. This is useful, for example, when working with frameworks if you want to to metaclass changes before your code is executed by the framework. The general form of the magic package is `groovy.runtime. [...] +It is possible to change the metaclass at startup time by giving the metaclass a specially crafted (magic) class name and package name. In order to change the metaclass for `java.lang.Integer` it's enough to put a class `groovy.runtime.metaclass.java.lang.IntegerMetaClass` in the classpath. This is useful, for example, when working with frameworks if you want to do metaclass changes before your code is executed by the framework. The general form of the magic package is `groovy.runtime. [...] [source,groovy]