You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by em...@apache.org on 2020/11/24 22:03:49 UTC

[groovy] branch GROOVY_3_0_X updated: GROOVY-9779: doCall is not instrisic to Closure

This is an automated email from the ASF dual-hosted git repository.

emilles pushed a commit to branch GROOVY_3_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/GROOVY_3_0_X by this push:
     new 8036f73  GROOVY-9779: doCall is not instrisic to Closure
8036f73 is described below

commit 8036f73e2b60872793cb9b16b5ed018d1753d85d
Author: Eric Milles <er...@thomsonreuters.com>
AuthorDate: Tue Nov 24 16:01:57 2020 -0600

    GROOVY-9779: doCall is not instrisic to Closure
---
 src/main/java/groovy/lang/MetaClassImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/groovy/lang/MetaClassImpl.java b/src/main/java/groovy/lang/MetaClassImpl.java
index dbe5228..514c527 100644
--- a/src/main/java/groovy/lang/MetaClassImpl.java
+++ b/src/main/java/groovy/lang/MetaClassImpl.java
@@ -1329,7 +1329,7 @@ public class MetaClassImpl implements MetaClass, MutableMetaClass {
         if (value instanceof Closure) {
             Closure<?> closure = (Closure<?>) value;
             MetaClass metaClass = closure.getMetaClass();
-            return metaClass.invokeMethod(closure.getClass(), closure, DO_CALL_METHOD, originalArguments, false, fromInsideClass);
+            return metaClass.invokeMethod(closure.getClass(), closure, CALL_METHOD, originalArguments, false, fromInsideClass);
         }
 
         if (value != null && !(value instanceof Map) && !methodName.equals(CALL_METHOD)) {