java,casting,classloader,methodhandle,invokevirtual
You can’t use invokeExact if the compile-time type of an argument doesn’t match the MethodHandle’s parameter type. It doesn’t help to play around with the Generic constructs like invoking cast on a Class<T>, the dynamic type is still unknown to the compiler. Or, in other words, due to type erasure,...