It also works with Stephan's 2011_05_02 MLVM build; it's only 2011_06_09 that
breaks this behavior.
Attila.
On Jun 11, 2011, at 2:32 PM, Rémi Forax wrote:
> 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
_______________________________________________
mlvm-dev mailing list
[email protected]
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev