changeset 6759:0807820fca96

8004933: Improve MethodHandle interaction with libraries Reviewed-by: jrose
author vlivanov
date Fri, 22 Feb 2013 02:58:38 -0800
parents 9995881dfb4e
children ae1fed8d80e1
files src/share/classes/java/lang/invoke/MethodHandleNatives.java
diffstat 1 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/lang/invoke/MethodHandleNatives.java	Fri Feb 22 02:59:24 2013 -0800
+++ b/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":