On 10/18/2015 09:49 AM, Jochen Theodorou wrote: > * Invokedynamic (like invokeinterface and invokevirtual) does not like > calls with null as receiver, quitting the call right away with a NPE. > But languages may allow for calls on null. That again means some kind of > dummy receiver is required, if this is supposed to work.
Wouldn't you just insert a null pointer check? That's surely going to be faster (if it's used) than the runtime taking a NullPointerException. And you don't want the runtime to have to trap for null when many languages don't need it. Andrew.