jdk/src/share/classes/java/lang/invoke/MethodHandles.java
changeset 16030 265a0d86c9ff
parent 14222 58f55d4dde46
child 16123 82033940e774
--- a/jdk/src/share/classes/java/lang/invoke/MethodHandles.java	Thu Feb 21 20:01:22 2013 +0000
+++ b/jdk/src/share/classes/java/lang/invoke/MethodHandles.java	Tue Feb 26 11:05:26 2013 +0000
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -1209,7 +1209,7 @@
             checkMethod(refKind, refc, method);
             if (method.isMethodHandleInvoke())
                 return fakeMethodHandleInvoke(method);
-            MethodHandle mh = DirectMethodHandle.make(refc, method);
+            MethodHandle mh = DirectMethodHandle.make(refKind, refc, method);
             mh = maybeBindCaller(method, mh);
             mh = mh.setVarargs(method);
             if (doRestrict)