Collections.nCopies(args.length + 2, Object.class).toArray(new Class[0])), ls).invokeWithArguments(
argList));
}
public static void main(String[] args) throws Throwable {
TypeBasedGuardingDynamicLinker linker = BeansLinker.getLinkerForClass(Test1.class);
LinkerServices ls = LinkerServicesFactory.getLinkerServices(linker);
Test1 test1 = new Test1();
GuardedInvocation inv = linker.getGuardedInvocation(new LinkRequestImpl(
CallSiteDescriptorFactory.create(MethodHandles.publicLookup(), "dyn:callMethod:add",
MethodType.methodType(Object.class, Object.class, Object.class, Object.class, Object.class, Object.class)),
false, null, null, null, null, null), ls);
MethodHandle handle = inv.getInvocation();