Bug with invokeArguments on x64
Rémi Forax
forax at univ-mlv.fr
Mon Dec 27 03:30:21 PST 2010
Hi guys,
this code crash with jdk7b123 on x64,
and on x32 it raises a CCE but it should raise a WrongMethodTypeException.
public class InvokeWithArgumentBug {
class A { }
public static void foo(A a) { }
public static void main(String[] args) throws Throwable {
MethodHandle mh =
MethodHandles.lookup().findStatic(InvokeWithArgumentBug.class, "foo",
MethodType.methodType(void.class, A.class));
mh.invokeWithArguments(2); // crash
}
}
Rémi
More information about the mlvm-dev
mailing list