Geert Bevin a écrit :
> Hi John,
>
> I'm still reading through the spec but have an initial question. Will
> the invokedynamic instruction only be able to mimic the invokevirtual
> instruction, or will there be some kind of support for invokespecial
> too?
Remplacing an invokeSpecial by invokeDynamic (invokeDynamic on 
java.dyn.Dynamic)
will lead to code that will be rejected by the bytecode verifier :(
Thus there is no support for invokeSpecial.
>  I can see a great use-case here to hook in at object
> instantiation time and perform some other logic instead of calling the
> constructor.
>   
A constructor must be called before a field access or a method call, see 
JVM spec 4.9.4.
> Continuing the read ...
>
> Geert
>   
cheers,
Rémi
> On Tue, May 20, 2008 at 6:17 AM, John Rose <[EMAIL PROTECTED]> wrote:
>   
>> Hello, JVM language folks!
>>
>> The early draft review for the invokedynamic instruction is now
>> available.   You can find more information via my blog:
>>   http://blogs.sun.com/jrose/entry/invokedynamic_goes_public
>>
>> Best wishes,
>> -- John
>>
>>     
>
>
>
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "JVM 
Languages" group.
To post to this group, send email to jvm-languages@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jvm-languages?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to