You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by bl...@apache.org on 2016/06/30 19:54:56 UTC

groovy git commit: change MethodHandles lookup mode to -1, which allows private and public lookups. Change is required due to internal changes in MethodHandles, which falsely allowed the old way.

Repository: groovy
Updated Branches:
  refs/heads/master cbe02a2df -> 68fc0d34d


change MethodHandles lookup mode to -1, which allows private and public lookups. Change is required due to internal changes in MethodHandles, which falsely allowed the old way.


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/68fc0d34
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/68fc0d34
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/68fc0d34

Branch: refs/heads/master
Commit: 68fc0d34dcc573de9658bb3a45ab32b200b543b8
Parents: cbe02a2
Author: Jochen Theodorou <bl...@gmx.org>
Authored: Thu Jun 30 21:37:26 2016 +0200
Committer: Jochen Theodorou <bl...@gmx.org>
Committed: Thu Jun 30 21:50:13 2016 +0200

----------------------------------------------------------------------
 src/main/org/codehaus/groovy/vmplugin/v7/Java7.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/68fc0d34/src/main/org/codehaus/groovy/vmplugin/v7/Java7.java
----------------------------------------------------------------------
diff --git a/src/main/org/codehaus/groovy/vmplugin/v7/Java7.java b/src/main/org/codehaus/groovy/vmplugin/v7/Java7.java
index 93165b1..11a2091 100644
--- a/src/main/org/codehaus/groovy/vmplugin/v7/Java7.java
+++ b/src/main/org/codehaus/groovy/vmplugin/v7/Java7.java
@@ -92,7 +92,7 @@ public class Java7 extends Java6 {
         Class declaringClass = method.getDeclaringClass();
         try {
             return LOOKUP_Constructor.
-                    newInstance(declaringClass, MethodHandles.Lookup.PRIVATE).
+                    newInstance(declaringClass, -1).
                     unreflectSpecial(method, declaringClass).
                     bindTo(receiver);
         } catch (ReflectiveOperationException e) {