<br><font size=2 face="sans-serif">Sorry for not being clear. In
my Smalltalk implementation all objects are of type</font>
<br><font size=2 face="sans-serif">RtObject so the types ( classes ) are
always RtObject. return and args alike. So if</font>
<br><font size=2 face="sans-serif">I know the airity I know the type array.
It just seems like more work for the jvm in a path</font>
<br><font size=2 face="sans-serif">which I hope will be fast.. Or
perhaps this in only a compile time cost?</font>
<br>
<br><font size=2 face="sans-serif">regards</font>
<br><font size=2 face="sans-serif">mark</font>
<br>
<br><tt><font size=2>> <br>
> No, when you invoke a method handle with invokeExact or by invokedynamic,<br>
> the VM first checks at runtime the method type. Otherwise, you will
be able<br>
> to crash the VM. <br>
> <br>
> So the resulting method handle of dropArguments must have a correct
<br>
> method type,<br>
> thus you have to provide the classes of the dropt arguments.<br>
> In your case, the classes can be easily derived from the target's
method type.<br>
> <br>
> something like target.type().parameterList().subList(0, target.type<br>
> ().parameterCount() - 1).toArray(new Class<?>[0]);<br>
> <br>
> RĂ©mi<br>
</font></tt>
<br>