8004933: Improve MethodHandle interaction with libraries
authorvlivanov
Fri, 22 Feb 2013 02:58:38 -0800
changeset 16121 49db59536470
parent 16120 133a029f510a
child 16122 2fa196d8b5c3
8004933: Improve MethodHandle interaction with libraries Reviewed-by: jrose
jdk/src/share/classes/java/lang/invoke/MethodHandleNatives.java
--- a/jdk/src/share/classes/java/lang/invoke/MethodHandleNatives.java	Fri Feb 22 02:59:24 2013 -0800
+++ b/jdk/src/share/classes/java/lang/invoke/MethodHandleNatives.java	Fri Feb 22 02:58:38 2013 -0800
@@ -405,6 +405,21 @@
             return defc == sun.misc.Unsafe.class;
         case "lookup":
             return defc == java.lang.invoke.MethodHandles.class;
+        case "findStatic":
+        case "findVirtual":
+        case "findConstructor":
+        case "findSpecial":
+        case "findGetter":
+        case "findSetter":
+        case "findStaticGetter":
+        case "findStaticSetter":
+        case "bind":
+        case "unreflect":
+        case "unreflectSpecial":
+        case "unreflectConstructor":
+        case "unreflectGetter":
+        case "unreflectSetter":
+            return defc == java.lang.invoke.MethodHandles.Lookup.class;
         case "invoke":
             return defc == java.lang.reflect.Method.class;
         case "get":