# HG changeset patch # User sherman # Date 1392918770 28800 # Node ID 7d2259be8e798933cc4c54b6886dad4b1957192c # Parent 2d6804cfdc0ef4f2bc03fa6b621980172a3b56b3 8035076: Pattern$BnMS never used due to bug in Pattern$BnM.optimize Summary: updated SliceS to subclass Slice node Reviewed-by: alanb, martin diff -r 2d6804cfdc0e -r 7d2259be8e79 jdk/src/share/classes/java/util/regex/Pattern.java --- a/jdk/src/share/classes/java/util/regex/Pattern.java Wed Feb 19 09:17:28 2014 -0800 +++ b/jdk/src/share/classes/java/util/regex/Pattern.java Thu Feb 20 09:52:50 2014 -0800 @@ -3961,7 +3961,7 @@ * 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 @@ * 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); } diff -r 2d6804cfdc0e -r 7d2259be8e79 jdk/test/java/util/regex/RegExTest.java --- a/jdk/test/java/util/regex/RegExTest.java Wed Feb 19 09:17:28 2014 -0800 +++ b/jdk/test/java/util/regex/RegExTest.java Thu Feb 20 09:52:50 2014 -0800 @@ -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.*;