Summary and Problem
The method jdk.incubator.vector.VectorMask.laneIsSet
does not specify that an exception is thrown if the given lane index is out of bounds.
Solution
Update VectorMask.laneIsSet
to specify IndexOutOfBoundsException
is thrown if a given lane index is out of bounds.
Specification
VectorMask.laneIsSet
is updated to:
/**
* Tests if the lane at index {@code i} is set
* @param i the lane index
*
* @return true if the lane at index {@code i} is set, otherwise false
* @throws IndexOutOfBoundsException if the index is out of range
* ({@code < 0 || >= length()})
*/
public abstract boolean laneIsSet(int i);
The changes are:
* @param i the lane index
*
* @return true if the lane at index {@code i} is set, otherwise false
+ * @throws IndexOutOfBoundsException if the index is out of range
+ * ({@code < 0 || >= length()})
*/
public abstract boolean laneIsSet(int i);
- csr of
-
JDK-8271515 Integration of JEP 417: Vector API (Third Incubator)
-
- Resolved
-