It works with jdk7 b144,
no way to access to b145 due to java.net maintenance.

Rémi

On 06/11/2011 11:18 PM, Attila Szegedi wrote:
public class TestVarArgInvoke {
public static void main(String[] args) throws Throwable {
    java.lang.invoke.MethodHandles.publicLookup().unreflect(
TestVarArgInvoke.class.getMethod("x", int.class, int[].class)).invokeWithArguments(
new TestVarArgInvoke(), 1, new int[] { 2 });
  }

public void x(int a, int... b) {
    System.out.println(a);
for(int x: b) {
      System.out.println(x);
    }
  }
}

_______________________________________________
mlvm-dev mailing list
[email protected]
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Reply via email to