Helpers for MethodHandles.byteArrayViewVarHandle VarHandle

Jaroslav Kameník jaroslav at kamenik.cz
Thu May 19 18:36:34 UTC 2016


>
> I meant change the shape of the VarHandle produced by:
>
>   MethodHandles.byteArrayViewVarHandle
>   MethodHandles.byteBufferViewVarHandle
>

Aaaha:) I must say, one reason, why I'd like to have it wrapped is
that VarHandle.get/set do not have fixed typed signature.

Helper.longAt(arr, index) looks much better than
SOME_STRANGE_CONSTANT.get(i can write here what I want and compiler says
nothing:);


> The problem is feature complete is very close and it will be hard, but not
> impossible, to make changes afterwards.
>

I should have started to write here earlier;). So, what will we do with it?


Jaroslav



More information about the core-libs-dev mailing list