You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2021/02/15 07:05:44 UTC
[groovy] branch GROOVY_3_0_X updated: Trivial refactoring: avoid
setting metaclass repeatedly
This is an automated email from the ASF dual-hosted git repository.
sunlan 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 5225c15 Trivial refactoring: avoid setting metaclass repeatedly
5225c15 is described below
commit 5225c15d7c73e9c8558825d7634e0417747a1c42
Author: Daniel Sun <su...@apache.org>
AuthorDate: Mon Feb 15 14:46:38 2021 +0800
Trivial refactoring: avoid setting metaclass repeatedly
(cherry picked from commit 500d475cd22f5bb4d1e030b6ff3603086ed3cdcf)
---
src/main/java/org/codehaus/groovy/vmplugin/v8/Selector.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/codehaus/groovy/vmplugin/v8/Selector.java b/src/main/java/org/codehaus/groovy/vmplugin/v8/Selector.java
index f0761e1..c294e94 100644
--- a/src/main/java/org/codehaus/groovy/vmplugin/v8/Selector.java
+++ b/src/main/java/org/codehaus/groovy/vmplugin/v8/Selector.java
@@ -641,7 +641,7 @@ public abstract class Selector {
if (metaMethod instanceof CachedMethod) {
if (LOG_ENABLED) LOG.info("meta method is CachedMethod instance");
CachedMethod cm = (CachedMethod) metaMethod;
- cm = (CachedMethod) VMPluginFactory.getPlugin().transformMetaMethod(getMetaClass(), cm);
+ cm = (CachedMethod) VMPluginFactory.getPlugin().transformMetaMethod(mc, cm);
isVargs = cm.isVargsMethod();
try {
Method m = cm.getCachedMethod();