JEP 276: Dynamic Linking of Language-Defined Object Models

Jochen Theodorou blackdrag at
Mon Oct 19 07:34:11 UTC 2015

On 18.10.2015 10:55, Andrew Haley wrote:
> 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.

Let's scrap that, outdated information on my side

More information about the core-libs-dev mailing list