FULL PRODUCT VERSION :
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Windows 8 [Version 6.2.9200]
A DESCRIPTION OF THE PROBLEM :
ran into a strange java.lang.ArrayIndexOutOfBoundsException: 64 error while parsing text using Nashorn Javascript engine. To reproduce the problem in JJS:
var col0 = " xxxx, xxx xxxxxx xxxxxxxxx xxxxxxx, xxxx xxxxx xxxxx ";
var name = /([^\s]+),(.*)+/.exec(col0);
Some other variants of the test string also cause the same exception, for example.
var col0 = "x, xxxxxxxxxx xxxxxxxxx xxxxxxx, xxxx xxxxx xxxxx ";
Happens with JDK8 versions 25, 31 and 40ea (on Windows 8).
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
run "jjs.exe"
jjs> var col0 = " L��nn, Per Gustaf Magnusson D��rring, Knut Johan Anton ";
jjs> var name = /([^\s]+),(.*)+/.exec(col0);
java.lang.ArrayIndexOutOfBoundsException: 64
REPRODUCIBILITY :
This bug can be reproduced always.