public void testStringFormat() throws Throwable {
DynamicLinker linker = new DynamicLinkerFactory().createLinker();
MonomorphicCallSite callSite = new MonomorphicCallSite(CallSiteDescriptorFactory.create(
MethodHandles.publicLookup(), "dyn:callMethod:format", MethodType.methodType(Object.class,
Object.class, Object.class, Object.class, Object.class)));
linker.link(callSite);
System.out.println(callSite.dynamicInvoker().invokeWithArguments(StaticClass.forClass(String.class),
"%4.0f %4.0f", 12f, 1f));
}
public void testIntOrDouble() throws Throwable {