8035076: Pattern$BnMS never used due to bug in Pattern$BnM.optimize

Updated SliceS to subclass Slice node

Reviewed-by: alanb, martin
This commit is contained in:
Xueming Shen 2014-02-20 09:52:50 -08:00
parent 7cb914ecd2
commit e2a87a0e2c
2 changed files with 3 additions and 3 deletions

View File

@ -3961,7 +3961,7 @@ loop: for(int x=0, offset=0; x<nCodePoints; x++, offset+=len) {
* Node class for a case sensitive/BMP-only sequence of literal
* characters.
*/
static final class Slice extends SliceNode {
static class Slice extends SliceNode {
Slice(int[] buf) {
super(buf);
}
@ -4034,7 +4034,7 @@ loop: for(int x=0, offset=0; x<nCodePoints; x++, offset+=len) {
* Node class for a case sensitive sequence of literal characters
* including supplementary characters.
*/
static final class SliceS extends SliceNode {
static final class SliceS extends Slice {
SliceS(int[] buf) {
super(buf);
}

View File

@ -32,7 +32,7 @@
* 6358731 6178785 6284152 6231989 6497148 6486934 6233084 6504326 6635133
* 6350801 6676425 6878475 6919132 6931676 6948903 6990617 7014645 7039066
* 7067045 7014640 7189363 8007395 8013252 8013254 8012646 8023647 6559590
* 8027645
* 8027645 8035076
*/
import java.util.regex.*;