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

_______________________________________________
mlvm-dev mailing list
mlvm-dev@openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Reply via email to