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 06:47:05 UTC
[groovy] branch master 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 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 500d475 Trivial refactoring: avoid setting metaclass repeatedly
500d475 is described below
commit 500d475cd22f5bb4d1e030b6ff3603086ed3cdcf
Author: Daniel Sun <su...@apache.org>
AuthorDate: Mon Feb 15 14:46:38 2021 +0800
Trivial refactoring: avoid setting metaclass repeatedly
---
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();