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 2022/05/10 17:53:16 UTC

[groovy] 01/01: Make methodhandle constant

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

sunlan pushed a commit to branch danielsun/lab-20220511
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit 2ac739125cfc20bf8846b067f4c0794ba3728991
Author: Daniel Sun <su...@apache.org>
AuthorDate: Wed May 11 01:52:37 2022 +0800

    Make methodhandle constant
---
 .../codehaus/groovy/vmplugin/v8/IndyGuardsFiltersAndSignatures.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/codehaus/groovy/vmplugin/v8/IndyGuardsFiltersAndSignatures.java b/src/main/java/org/codehaus/groovy/vmplugin/v8/IndyGuardsFiltersAndSignatures.java
index b358d6e4b9..7d45f5a07a 100644
--- a/src/main/java/org/codehaus/groovy/vmplugin/v8/IndyGuardsFiltersAndSignatures.java
+++ b/src/main/java/org/codehaus/groovy/vmplugin/v8/IndyGuardsFiltersAndSignatures.java
@@ -58,7 +58,7 @@ public class IndyGuardsFiltersAndSignatures {
             OBJECT_GUARD = MethodType.methodType(boolean.class, Object.class),
             INVOKER = MethodType.methodType(Object.class, Object.class, String.class, Object[].class);
 
-    protected static final MethodHandle
+    public static final MethodHandle
             SAME_CLASS, SAME_MC, IS_NULL,
             UNWRAP_METHOD, UNWRAP_EXCEPTION,
             HAS_CATEGORY_IN_CURRENT_THREAD_GUARD,
@@ -109,7 +109,7 @@ public class IndyGuardsFiltersAndSignatures {
         }
     }
 
-    protected static final MethodHandle NULL_REF = MethodHandles.constant(Object.class, null);
+    public static final MethodHandle NULL_REF = MethodHandles.constant(Object.class, null);
 
     /**
      * This method is called by the handle to realize the bean constructor