On Tue, May 5, 2009 at 5:15 PM, Fredrik Öhrström <span dir="ltr">&lt;<a href="mailto:fredrik.ohrstrom@oracle.com">fredrik.ohrstrom@oracle.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
What is the purpose of being able to invoke the constructor<br>
through a MethodHandle? The reason I am asking is because<br>
to me, it seems like we cannot perform a new through<br>
a MethodHandle. Which means that we have to generate a<br>
factory method (to which we can bind a MethodHandle) to<br>
create a new instance and then we can just as well put<br>
the call to the constructor there. Or am i missing<br>
something? :-)</blockquote><div><br>Isn&#39;t findSpecial just using the same semantics as invokespecial?  i.e. invoking/finding the method on the exact class instead of doing a virtual dispatch. That is used for other things than only constructors, in Java this is used for super.method(..)-invocations.<br>
<br>/Tobias<br></div></div><br>