changeset 18:ebfb233ce72a

meth: pluralize insertArguments to match dropArguments
author jrose
date Sat, 13 Jun 2009 00:06:45 -0700
parents 4a545756cc3d
children afa2631a7ed5
files netbeans/meth/test/jdk/java/dyn/MethodHandleDemo.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/netbeans/meth/test/jdk/java/dyn/MethodHandleDemo.java	Fri Jun 12 23:59:55 2009 -0700
+++ b/netbeans/meth/test/jdk/java/dyn/MethodHandleDemo.java	Sat Jun 13 00:06:45 2009 -0700
@@ -91,7 +91,7 @@
         result = mh.<String>invoke("X");
         assertEquals("[test1 X]", result);
         
-        mh = MethodHandles.insertArgument(mh, 0, "Bounderby");
+        mh = MethodHandles.insertArguments(mh, 0, "Bounderby");
         println("calling bound "+mh);
         result = mh.<String>invoke();
         assertEquals("[test1 Bounderby]", result);
@@ -102,7 +102,7 @@
         result = mh.<String>invoke("X", 123);
         assertEquals("[test2 X #123]", result);
 
-        mh = MethodHandles.insertArgument(mh, 0, "Buster");
+        mh = MethodHandles.insertArguments(mh, 0, "Buster");
         println("calling bound "+mh);
         result = mh.<String>invoke(456);
         assertEquals("[test2 Buster #456]", result);