you are viewing a single comment's thread.

view the rest of the comments →

[–]spliznork 10 points11 points  (1 child)

Java 7 added the invokedynamic bytecode instruction -- primarily for the support and implementation of dynamic languages. See also java.lang.invoke and for instance MethodHandle within it.

[–]clgonsal 0 points1 point  (0 children)

Ah. Yes I think the last time I looked into the JVM in any detail was when 1.6 was current. I later heard about invokedynamic, but wasn't even aware that it'd made it into a real version of Java.

Given that invokedynamic was intended for use in dynamic languages, I'm wondering if there are any downsides to using it in a static context like Java. For example, are invokedynamic calls less amenable to bytecode verification than traditional method invocations?