Java bytecode: Difference between revisions

Content deleted Content added
Line 528:
| xxxunusedxxx || align="center" | ba || || || this opcode is reserved "for historical reasons"
|}
 
==Support for dynamic Languages==
{{main|JVM Languages}}
The [[Java Virtual Machine]] has currently no built-in support for [[Type system#Dynamic_typing|Dynamically typed languages]], because the existing JVM instruction set is [[Type system#Static typing|statically typed]]<ref>{{cite web
| url=http://headius.blogspot.com/2007/01/invokedynamic-actually-useful.html
| title=InvokeDynamic: Actually Useful?
| date=[[2007-01-03]]
|last=Nutter|first=Charles
| accessdate=2008-01-25}}</ref>.
 
[[Java Community Process|JSR 292]] (''Supporting Dynamically Typed Languages on the JavaTM Platform'') <ref>[http://www.jcp.org/en/jsr/detail?id=292 see JSR 292]</ref> propose to add a new <code>invokedynamic</code> instruction at the JVM level, to allow method invocation relying on dynamic [[Type system#Type checking|Type checking]] (instead of the existing static type checking <code>invokevirtual</code>).
 
==Notes==