I am trying to call MethodHandle.invokeExact
in a generated Javassist method, but I always get Exception in thread "main" javassist.CannotCompileException: [source error] invokeExact(int) not found in java.lang.invoke.MethodHandle
This seems to be because invokeExact
is a @PolymorphicSignature
method.How can I call it from a Javassist method?