Lines Matching refs:lookup
26 7157574 method handles returned by reflective lookup API sometimes have wrong receiver type
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).
36 * restricted in type to the lookup class; see below.)
43 * @summary method handles returned by reflective lookup API sometimes have wrong receiver type
56 MethodHandle m1 = lookup().findVirtual(Sub.class, "m1", methodType(void.class));
58 MethodHandle m2 = lookup().findVirtual(Sub.class, "m2", methodType(void.class));
60 MethodHandle f2 = lookup().findGetter(Sub.class, "f2", int.class);
62 MethodHandle f2s = lookup().findSetter(Sub.class, "f2", int.class);
64 MethodHandle chc = lookup().findVirtual(Sub.class, "hashCode", methodType(int.class));
66 MethodHandle ihc = lookup().findVirtual(Intf.class, "hashCode", methodType(int.class));