[foreign-memaccess+abi] RFR: 8300785: Add way to select group element paths by index
Jorn Vernee
jvernee at openjdk.org
Fri Jan 20 16:20:00 UTC 2023
On Fri, 20 Jan 2023 16:11:09 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
>> Good point - it was my intention but got distracted :-)
>
> actually... there is such a test:
>
>
> @Test(expectedExceptions = IllegalArgumentException.class)
> public void testTooBigGroupElementIndex() {
> GroupLayout g = MemoryLayout.structLayout(JAVA_INT);
> g.byteOffset(groupElement(1));
> }
Ah sorry! I misread that code as selecting the first element 📦
-------------
PR: https://git.openjdk.org/panama-foreign/pull/773
More information about the panama-dev
mailing list