Saturday, May 1, 2010

invokedynamic on JDK7

Looks like JDK7 as per Oracle could be the next release of Java Platform. One of the most interesting addition seems to be the addition of new bytecode operation for method invocation, which is 'invokedynamic'.

invokedynamic bytecode operation which works more like 'inovkeinterface' but without the need to specify the return type and the target type of the method being invoked. This will release the lot of pressure from the developers dynamic languages that runs on JVM. Now They don't have to generate the bytecodes as per statically typed JVM because bytecode has been designed exclusively for statically typed languages, especially in its treatment of method invocation.

invokedynamic bytecode will use a linkage mechanism provided by class MethodHandle in the pacakage java.dyn, that contains the classes associated with dynamic language support in the Java platform.

No comments :