RFR(M): 8156915: introduce MethodHandle factory for array length

stanislav lukyanov stanislav.lukyanov at oracle.com
Wed May 18 10:52:30 UTC 2016


Hi Michael,

I've noticed that neither the new method nor its friends, 
arrayElementGetter and arrayElementSetter,
discuss the invocation-time behavior.
It seems important since there are exceptions to be documented.

I think the best way would be to make a connection between the methods 
and corresponding instructions,
so as not to explain every NPE and, especially, ArrayStoreException in 
Javadoc.
Probably no need to go deep in details on how, for example, 
arrayElementGetter(T) maps on 8 Taload instructions,
but just give a basic notion of that.

WDYT? Should I file a separate RFE for that? (for 
arrayElementGetter/Setter? for all three?)

Thanks,
Stanislav

On 18.05.2016 10:52, Michael Haupt wrote:
> Dear all,
>
> please review this change.
> RFE: https://bugs.openjdk.java.net/browse/JDK-8156915
> Webrev: http://cr.openjdk.java.net/~mhaupt/8156915/webrev.00/
>
> Thanks,
>
> Michael
>




More information about the core-libs-dev mailing list