A DESCRIPTION OF THE PROBLEM :
When creating a Vector from an array that would index elements out of bounds, the resulting error is extremely confusing.
Example: Array of length 8, species with 4 lanes, trying to index elements 9-12: the resulting error will tell that index 9 is out of bounds for an array of length 5 even though the length is 8.
This behaviour seems to only be the case if the property `jdk.incubator.vector.VECTOR_ACCESS_OOB_CHECK` is the default value of 2
When creating a Vector from an array that would index elements out of bounds, the resulting error is extremely confusing.
Example: Array of length 8, species with 4 lanes, trying to index elements 9-12: the resulting error will tell that index 9 is out of bounds for an array of length 5 even though the length is 8.
This behaviour seems to only be the case if the property `jdk.incubator.vector.VECTOR_ACCESS_OOB_CHECK` is the default value of 2
- duplicates
-
JDK-8313437 Wrong error message when the input array for a vector is too small
- Closed