MCPcopy Create free account
hub / github.com/LFYSec/MScan / bootstrap

Method bootstrap

src/test/resources/pta/invokedynamic/A.java:30–35  ·  view source on GitHub ↗
(MethodHandles.Lookup caller, String name, MethodType type)

Source from the content-addressed store, hash-verified

28 }
29
30 public static CallSite bootstrap(MethodHandles.Lookup caller, String name, MethodType type)
31 throws NoSuchMethodException, IllegalAccessException {
32 MethodType mt = MethodType.methodType(Void.TYPE, A.class);
33 MethodHandle handle = MethodHandles.lookup().findStatic(A.class, name, mt);
34 return new ConstantCallSite(handle);
35 }
36
37 public static CallSite bootstrap2(MethodHandles.Lookup caller, String name, MethodType type)
38 throws NoSuchMethodException, IllegalAccessException {

Callers

nothing calls this directly

Calls 1

findStaticMethod · 0.80

Tested by

no test coverage detected