> Hi all,
> 
> For this reproducer:
> 
> import jdk.incubator.vector.ByteVector;
> import jdk.incubator.vector.VectorSpecies;
> 
> public class Test {
>     static final VectorSpecies<Byte> SPECIES_128 = ByteVector.SPECIES_128;
>     static byte[] a = new byte[8];
>     static byte[] b = new byte[8];
> 
>     public static void main(String[] args) {
>         ByteVector av = ByteVector.fromArray(SPECIES_128, a, 0);
>         av.intoArray(b, 0);
>         System.out.println("b: " + b[0]);
>     }
> }
> 
> The following IndexOutOfBoundsException message (length -7) is unreasonable.
> 
> Exception in thread "main" java.lang.IndexOutOfBoundsException: Index 0 out 
> of bounds for length -7
> 
> It might be better to fix it like this.
> 
> Exception in thread "main" java.lang.IndexOutOfBoundsException: Index 0 out 
> of bounds for length 0
> 
> Thanks.
> Best regards,
> Jie

Jie Fu has updated the pull request incrementally with one additional commit 
since the last revision:

  Fix the performance issue

-------------

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/2127/files
  - new: https://git.openjdk.java.net/jdk/pull/2127/files/ca39b482..3fd8b316

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=2127&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=2127&range=00-01

  Stats: 8 lines in 1 file changed: 6 ins; 0 del; 2 mod
  Patch: https://git.openjdk.java.net/jdk/pull/2127.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/2127/head:pull/2127

PR: https://git.openjdk.java.net/jdk/pull/2127

Reply via email to