This is an automated email from the ASF dual-hosted git repository.
paulk 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 3f40cee add comment
3f40cee is described below
commit 3f40ceec8fe93a17820feaf23992d1ee740447f7
Author: Paul King <[email protected]>
AuthorDate: Mon Jul 20 07:59:47 2020 +1000
add comment
---
src/main/java/org/codehaus/groovy/vmplugin/v8/Java8.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/codehaus/groovy/vmplugin/v8/Java8.java
b/src/main/java/org/codehaus/groovy/vmplugin/v8/Java8.java
index e4bf60d..6f11ec4 100644
--- a/src/main/java/org/codehaus/groovy/vmplugin/v8/Java8.java
+++ b/src/main/java/org/codehaus/groovy/vmplugin/v8/Java8.java
@@ -642,7 +642,7 @@ public class Java8 implements VMPlugin {
}
Class<?> declaringClass = method.getDeclaringClass();
try {
- return getLookupConstructor().newInstance(declaringClass, -1).
+ return getLookupConstructor().newInstance(declaringClass, -1 /*
TRUSTED */).
unreflectSpecial(method, declaringClass).
bindTo(receiver);
} catch (ReflectiveOperationException e) {