public class TestElementSetter extends TestCase {
public void testEarlyBoundPrimitiveArrayElementSetter() throws Throwable {
final RelinkCountingCallSite cs = new RelinkCountingCallSite("dyn:setElem", MethodType.methodType(Void.TYPE,
int[].class, int.class, int.class));
new DynamicLinkerFactory().createLinker().link(cs);
final MethodHandle invoker = cs.dynamicInvoker();
final int[] x = new int[] { 0, 0, 0 };
invoker.invokeWithArguments(x, 0, 3);
invoker.invokeWithArguments(x, 1, 2);
invoker.invokeWithArguments(x, 2, 1);