-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
None
-
master
The test org.openjdk.bench.java.lang.foreign.StrLenTest reports
"java.lang.StringIndexOutOfBoundsException" for size 450+.
The failure message is:
java.lang.StringIndexOutOfBoundsException: Range [0, 451) out of bounds for length 450
Command to run:
java -jar benchmarks.jar -f 1 -wi 1 -i 1 -t 1 -p size=451 -jvmArgs "-Djava.library.path=native" StrLenTest
During initialization it use sub-strig of 450 symbols string without any checks.
The test should check parameters or generate string with requested size.
"java.lang.StringIndexOutOfBoundsException" for size 450+.
The failure message is:
java.lang.StringIndexOutOfBoundsException: Range [0, 451) out of bounds for length 450
Command to run:
java -jar benchmarks.jar -f 1 -wi 1 -i 1 -t 1 -p size=451 -jvmArgs "-Djava.library.path=native" StrLenTest
During initialization it use sub-strig of 450 symbols string without any checks.
The test should check parameters or generate string with requested size.
- links to
-
Commit(master) openjdk/jdk/7c22b814
-
Review(master) openjdk/jdk/23873