mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8308281: Java snippets in the FFM API need to be updated
Reviewed-by: mcimadamore
This commit is contained in:
parent
26227a6ff8
commit
eb11508eff
7 changed files with 734 additions and 49 deletions
|
@ -117,8 +117,8 @@ public sealed interface ValueLayout extends MemoryLayout permits
|
|||
* <p>
|
||||
* Consider the following access expressions:
|
||||
* {@snippet lang=java :
|
||||
* int value1 = arrayHandle.get(10, 2, 4); // ok, accessed offset = 8176
|
||||
* int value2 = arrayHandle.get(0, 0, 30); // out of bounds value for z
|
||||
* int value1 = (int) arrayHandle.get(10, 2, 4); // ok, accessed offset = 8176
|
||||
* int value2 = (int) arrayHandle.get(0, 0, 30); // out of bounds value for z
|
||||
* }
|
||||
* In the first case, access is well-formed, as the values for {@code x}, {@code y} and {@code z} conform to
|
||||
* the bounds specified above. In the second case, access fails with {@link IndexOutOfBoundsException},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue