/openjdk7/hotspot/test/compiler/6990212/ |
H A D | Test6990212.java | 48 MethodHandle target = MethodHandles.lookup().findVirtual(intf.class, "target", MethodType.methodType(Object.class));
|
/openjdk7/jdk/test/java/lang/invoke/7157574/ |
H A D | Test7157574.java | 28 When an inherited non-static field or method is looked up in a class C using Lookup.findVirtual(C...), etc., the JSR 292 API, the first argument of the resulting method handle must be the receiver ('this'), and must be the requested class (or more specific, in the case of findSpecial or a lookup of a protected method). 56 MethodHandle m1 = lookup().findVirtual(Sub.class, "m1", methodType(void.class)); 58 MethodHandle m2 = lookup().findVirtual(Sub.class, "m2", methodType(void.class)); 64 MethodHandle chc = lookup().findVirtual(Sub.class, "hashCode", methodType(int.class)); 66 MethodHandle ihc = lookup().findVirtual(Intf.class, "hashCode", methodType(int.class));
|
/openjdk7/jdk/test/java/lang/invoke/ |
H A D | JavaDocExamplesTest.java | 88 // static final private MethodHandle CONCAT_1 = LOOKUP.findVirtual(String.class, 90 // static final private MethodHandle HASHCODE_1 = LOOKUP.findVirtual(Object.class, 98 CONCAT_2 = LOOKUP.findVirtual(String.class, 100 HASHCODE_2 = LOOKUP.findVirtual(Object.class, 115 MethodHandle CONCAT_3 = LOOKUP.findVirtual(String.class, 117 MethodHandle HASHCODE_3 = LOOKUP.findVirtual(Object.class, 146 MethodHandle cat = lookup().findVirtual(String.class, 163 MethodHandle cat = lookup().findVirtual(String.class, 173 MethodHandle cat = lookup().findVirtual(String.class, 190 MethodHandle cat = lookup().findVirtual(Strin [all...] |
H A D | ThrowExceptionsTest.java | 149 private static MethodHandle findVirtual(String name) { method in class:ThrowExceptionsTest 176 MethodHandle callee = findVirtual("testWMTCallee");
|
H A D | PrivateInvokeTest.java | 143 .findVirtual(MethodHandle.class, "internalMemberName", methodType(MEMBER_NAME_CLASS)) 146 .findVirtual(MethodHandle.class, "debugString", methodType(String.class)); 190 .findVirtual(MethodHandle.class, name, mtype);
|
H A D | InvokeDynamicPrintArgs.java | 198 return lookup().findVirtual(lookup().lookupClass(), "createTarget", methodType(MethodHandle.class));
|
H A D | AccessControlTest.java | 368 sourceCase.lookup().findVirtual(targetClass, methodName, methodType);
|
H A D | InvokeGenericTest.java | 463 findVirtual(Object.class, "toString", MethodType.methodType(String.class));
|
H A D | MethodHandlesTest.java | 546 startTest("findVirtual"); 591 target = maybeMoveIn(lookup, defc).findVirtual(defc, methodName, type); 601 System.out.println("findVirtual "+lookup+": "+defc.getName()+"."+name+"/"+type+" => "+target 2200 MethodHandle test = PRIVATE.findVirtual(Object.class, "equals", MethodType.methodType(boolean.class, Object.class)); 2303 = PRIVATE.findVirtual(MethodHandlesTest.class, "fakeIdentity", 2513 VALUE = PRIVATE.findVirtual( 2614 mh = lookup.findVirtual(Example.class, name, mt);
|
/openjdk7/jdk/src/share/classes/java/lang/invoke/ |
H A D | CallSite.java | 223 findVirtual(CallSite.class, "getTarget", MethodType.methodType(MethodHandle.class));
|
H A D | Invokers.java | 130 //Lookup.findVirtual(MethodHandle.class, name, type); 176 .findVirtual(MethodHandle.class, "asSpreader",
|
H A D | MethodHandleImpl.java | 698 invoke = lookup.findVirtual(GuardWithCatch.class, name, MethodType.genericMethodType(nargs)); 713 VARARGS_INVOKE = IMPL_LOOKUP.findVirtual(GuardWithCatch.class, "invoke_V", MethodType.genericMethodType(0, true));
|
H A D | MethodHandles.java | 136 * <td>{@linkplain java.lang.invoke.MethodHandles.Lookup#findVirtual lookup.findVirtual(C.class,"m",MT)}</td> 561 * as there would be with {@link #findVirtual findVirtual} or {@link #findSpecial findSpecial}.) 611 * instructions and method handles produced by {@code findVirtual}, 632 public MethodHandle findVirtual(Class<?> refc, String name, MethodType type) throws NoSuchMethodException, IllegalAccessException { method in class:MethodHandles.Lookup 840 MethodHandle mh0 = lookup().{@link #findVirtual findVirtual}(defc, name, type); 1422 publicLookup().findVirtual(MethodHandle.class, "invokeExact", type) 1474 publicLookup().findVirtual(MethodHandl [all...] |