[jsr-292-eg] updated RI code and API javadoc
Rémi Forax
forax at univ-mlv.fr
Tue Sep 15 21:35:17 PDT 2009
Le 16/09/2009 02:56, John Rose a écrit :
> (Getting a round of EG work in before the Summit, so we'll have more
> to talk about. :-)
[...]
>> Regarding the LDC proposal, it came to my attention that JSR 294
>> (Modularity) is planning to add new ConstantPool types as well. This
>> makes me very opposed to the idea of trying to overload the existing
>> CONSTANT_* rather than adding CONSTANT_MethodHandleref_info and
>> CONSTANT_MethodTyperef_info.
>>
> That seems right. Let's talk about this at the Summit. The advantage
> of using constants rather than reflective factory methods is the
> ability of tools (or the JVM) to see ahead of time how the app. is
> going to link itself. There may also be compactness benefits.
Knowing the method handle before runtime will allow, by example, to avoid
the method type check in case of MethodHandle.invoke().
Rémi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/mlvm-dev/attachments/20090916/e45e82ca/attachment.html
More information about the mlvm-dev
mailing list