Created
May 30, 2009 21:52
-
-
Save jruby/120648 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/indy.patch b/indy.patch | |
--- a/indy.patch | |
+++ b/indy.patch | |
@@ -1338,6 +1338,15 @@ | |
import static sun.dyn.MemberName.newIllegalArgumentException; | |
import static sun.dyn.MemberName.newNoAccessException; | |
+@@ -223,7 +226,7 @@ | |
+ MethodHandle bindArgument(Access token, | |
+ MethodHandle target, int argnum, Object receiver) { | |
+ Access.check(token); | |
+- throw new UnsupportedOperationException("NYI"); | |
++ return new BoundMethodHandle(target, receiver, argnum); | |
+ } | |
+ | |
+ public static MethodHandle convertArguments(Access token, | |
@@ -274,72 +277,145 @@ | |
ptypes[spreadArg + i] = VerifyType.spreadArgElementType(spreadType, i); | |
MethodType midType = MethodType.make(newType.returnType(), ptypes); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment