-
Bug
-
Resolution: Fixed
-
P3
-
22, 23
-
None
The implementation for offsetHandle adds bounds checks for each of the long indices provided to that handle. The upper bound for each index is determined by the particular path element expression used to select through a sequence layout.
Currently, we describe, in non-normative text, what is the range of the corresponding index in the javadoc for PathElement::sequenceElement. But we do not document that MemoryLayout::offsetHandle can indeed throw IndexOutOfBoundException if an index is found outside such bounds. The javadoc should clarify that.
Currently, we describe, in non-normative text, what is the range of the corresponding index in the javadoc for PathElement::sequenceElement. But we do not document that MemoryLayout::offsetHandle can indeed throw IndexOutOfBoundException if an index is found outside such bounds. The javadoc should clarify that.
- csr for
-
JDK-8332143 Clarify javadoc for MemoryLayout::offsetHandle
- Closed