aslan
02/27/2017, 3:03 PMpublic static void showHello() {
System.out.println("Hello");
}
now i'd like to invoke it by using MethodHandle
val c = Class.forName("sample.SampleModule")
val lookup = MethodHandles.lookup()
val mtype = MethodType.methodType(void::class.java)
lookup.findStatic(c, "showHello", mtype).invoke()
of course, there is nothing like void return-type in kotlin.
the question is: how could i invoke it?