Skip to content

Instantly share code, notes, and snippets.

@jruby
Created May 30, 2009 21:52
Show Gist options
  • Save jruby/120648 to your computer and use it in GitHub Desktop.
Save jruby/120648 to your computer and use it in GitHub Desktop.
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