Searched refs:unreflect (Results 1 - 24 of 24) sorted by relevance

/openjdk10/jdk/test/java/lang/invoke/ProtectedMemberDifferentPackage/p1/
H A DT2.java53 assertFailure(IAE, () -> LOOKUP.unreflect(T1.class.getDeclaredMethod("m1")));
54 assertFailure(IAE, () -> LOOKUP.unreflect(T1.class.getDeclaredMethod("m2")));
/openjdk10/nashorn/src/jdk.dynalink/share/classes/jdk/dynalink/beans/
H A DCallerSensitiveDynamicMethod.java108 * {@link #getTarget(CallSiteDescriptor)} to unreflect a method handle from the reflective member on
165 final MethodHandle mh = unreflect(lookup, (Method)target);
180 private static MethodHandle unreflect(final MethodHandles.Lookup lookup, final Method m) { method in class:CallerSensitiveDynamicMethod
181 return Lookup.unreflect(lookup, m);
H A DAbstractJavaLinker.java323 final MethodHandle handle = Lookup.PUBLIC.unreflect(reflMethod);
/openjdk10/jdk/test/java/lang/invoke/VarHandles/
H A DVarHandleTestReflection.java70 MethodHandle mh = MethodHandles.lookup().unreflect(
84 MethodHandle mh = MethodHandles.lookup().unreflect(
/openjdk10/nashorn/src/jdk.dynalink/share/classes/jdk/dynalink/linker/support/
H A DLookup.java119 * Performs a {@link java.lang.invoke.MethodHandles.Lookup#unreflect(Method)},
123 * @param m the method to unreflect
127 public MethodHandle unreflect(final Method m) { method in class:Lookup
128 return unreflect(lookup, m);
132 * Performs a {@link java.lang.invoke.MethodHandles.Lookup#unreflect(Method)},
136 * @param lookup the lookup used to unreflect
137 * @param m the method to unreflect
141 public static MethodHandle unreflect(final MethodHandles.Lookup lookup, final Method m) { method in class:Lookup
143 return lookup.unreflect(m);
145 final IllegalAccessError ee = new IllegalAccessError("Failed to unreflect metho
[all...]
/openjdk10/nashorn/test/src/jdk/dynalink/linker/support/test/
H A DLookupTest.java75 final MethodHandle mh = Lookup.unreflect(getLookup(publicLookup), LookupTest.class.getMethod("unreflectTest", Boolean.TYPE));
81 final MethodHandle mh = Lookup.PUBLIC.unreflect(LookupTest.class.getMethod("unreflectTest", Boolean.TYPE));
88 final MethodHandle mh = Lookup.unreflect(getLookup(publicLookup),
103 Lookup.PUBLIC.unreflect(LookupTest.class.getDeclaredMethod("privateFunc"));
/openjdk10/jdk/test/java/lang/invoke/7196190/
H A DClassForNameTest.java86 final MethodHandle mh = MethodHandles.lookup().unreflect(fnMethod);
H A DGetUnsafeTest.java95 final MethodHandle mh = MethodHandles.lookup().unreflect(fnMethod);
/openjdk10/hotspot/test/compiler/jsr292/
H A DRedefineMethodUsedByMultipleMethodHandles.java79 MethodHandle fooMH1 = lookup.unreflect(fooMethod);
80 MethodHandle fooMH2 = lookup.unreflect(fooMethod);
/openjdk10/jdk/test/java/lang/invoke/
H A DPrivateInvokeTest.java115 private static MethodHandle unreflect(Method m) { method in class:PrivateInvokeTest
117 MethodHandle mh = LOOKUP.unreflect(m);
333 final MethodHandle mh = unreflect(m);
H A DThrowExceptionsTest.java159 mh = LOOKUP.unreflect(m);
H A DCallStaticInitOrder.java107 CONSTANT_MH_bat = lookup().unreflect(Init4.class.getDeclaredMethod("bat"));
H A DPermuteArgsTest.java149 test(m.getName(), lookup.unreflect(m));
222 MethodHandle mh = lookup.unreflect(m);
H A DAccessControlTest.java406 testOneAccess(sourceCase, method, "unreflect");
438 case "unreflect":
439 sourceCase.lookup().unreflect(method);
H A DRevealDirectTest.java525 mh = lookup.unreflect(m);
H A DMethodHandlesTest.java946 startTest("unreflect");
1002 target = maybeMoveIn(lookup, defc).unreflect(rmethod);
1011 System.out.println("unreflect"+(isSpecial?"Special":"")+" "+defc.getName()+"."+name+"/"+type
1140 case TEST_UNREFLECT: return true; // unreflect matches both
3360 MethodHandle invoker = lookup.unreflect(m);
H A DBigArityTest.java70 MethodHandles.lookup().unreflect(
/openjdk10/hotspot/test/compiler/jvmci/jdk.vm.ci.hotspot.test/src/jdk/vm/ci/hotspot/test/
H A DMethodHandleAccessProviderTest.java101 mh = MethodHandles.lookup().unreflect(self);
/openjdk10/hotspot/test/compiler/intrinsics/bigInteger/
H A DMontgomeryMultiplyTest.java74 montgomeryMultiplyHandle = lookup.unreflect(m);
80 montgomerySquareHandle = lookup.unreflect(m);
/openjdk10/jdk/src/java.base/share/classes/jdk/internal/reflect/
H A DReflectionFactory.java484 return MethodHandles.lookup().unreflect(meth);
546 return MethodHandles.lookup().unreflect(m);
/openjdk10/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.code/src/org/graalvm/compiler/code/
H A DHexCodeFileDisassemblerProvider.java136 toolMethod = MethodHandles.lookup().unreflect(toolClass.getDeclaredMethod("processEmbeddedString", String.class));
/openjdk10/jdk/test/java/lang/invoke/7087570/
H A DTest7087570.java184 return LOOKUP.unreflect(m);
/openjdk10/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/lookup/
H A DMethodHandleFactory.java532 final MethodHandle mh = PUBLIC_LOOKUP.unreflect(method);
/openjdk10/jdk/src/java.base/share/classes/java/lang/invoke/
H A DMethodHandles.java332 * <th scope="row">{@link java.lang.invoke.MethodHandles.Lookup#unreflect lookup.unreflect(aMethod)}</th>
340 * <th scope="row">{@link java.lang.invoke.MethodHandles.Lookup#unreflect lookup.unreflect(aMethod)}</th>
1733 public MethodHandle unreflect(Method m) throws IllegalAccessException { method in class:MethodHandles.Lookup
2283 // Optionally check with the security manager; this isn't needed for unreflect* calls.
2356 // Optionally check with the security manager; this isn't needed for unreflect* calls.
2427 // Optionally check with the security manager; this isn't needed for unreflect* calls.

Completed in 157 milliseconds