equal
deleted
inserted
replaced
32 * 6358731 6178785 6284152 6231989 6497148 6486934 6233084 6504326 6635133 |
32 * 6358731 6178785 6284152 6231989 6497148 6486934 6233084 6504326 6635133 |
33 * 6350801 6676425 6878475 6919132 6931676 6948903 6990617 7014645 7039066 |
33 * 6350801 6676425 6878475 6919132 6931676 6948903 6990617 7014645 7039066 |
34 * 7067045 7014640 7189363 8007395 8013252 8013254 8012646 8023647 6559590 |
34 * 7067045 7014640 7189363 8007395 8013252 8013254 8012646 8023647 6559590 |
35 * 8027645 8035076 8039124 8035975 8074678 6854417 8143854 8147531 7071819 |
35 * 8027645 8035076 8039124 8035975 8074678 6854417 8143854 8147531 7071819 |
36 * 8151481 4867170 7080302 6728861 6995635 6736245 4916384 |
36 * 8151481 4867170 7080302 6728861 6995635 6736245 4916384 |
37 * 6328855 6192895 6345469 6988218 6693451 7006761 8140212 8143282 |
37 * 6328855 6192895 6345469 6988218 6693451 7006761 8140212 8143282 8158482 |
38 * |
38 * |
39 * @library /lib/testlibrary |
39 * @library /lib/testlibrary |
40 * @build jdk.testlibrary.* |
40 * @build jdk.testlibrary.* |
41 * @run main RegExTest |
41 * @run main RegExTest |
42 * @key randomness |
42 * @key randomness |
162 branchTest(); |
162 branchTest(); |
163 groupCurlyNotFoundSuppTest(); |
163 groupCurlyNotFoundSuppTest(); |
164 groupCurlyBackoffTest(); |
164 groupCurlyBackoffTest(); |
165 patternAsPredicate(); |
165 patternAsPredicate(); |
166 invalidFlags(); |
166 invalidFlags(); |
|
167 embeddedFlags(); |
167 grapheme(); |
168 grapheme(); |
168 expoBacktracking(); |
169 expoBacktracking(); |
169 |
170 |
170 if (failure) { |
171 if (failure) { |
171 throw new |
172 throw new |
4673 } |
4674 } |
4674 } |
4675 } |
4675 report("Invalid compile flags"); |
4676 report("Invalid compile flags"); |
4676 } |
4677 } |
4677 |
4678 |
|
4679 // This test is for 8158482 |
|
4680 private static void embeddedFlags() throws Exception { |
|
4681 try { |
|
4682 Pattern.compile("(?i).(?-i)."); |
|
4683 Pattern.compile("(?m).(?-m)."); |
|
4684 Pattern.compile("(?s).(?-s)."); |
|
4685 Pattern.compile("(?d).(?-d)."); |
|
4686 Pattern.compile("(?u).(?-u)."); |
|
4687 Pattern.compile("(?c).(?-c)."); |
|
4688 Pattern.compile("(?x).(?-x)."); |
|
4689 Pattern.compile("(?U).(?-U)."); |
|
4690 Pattern.compile("(?imsducxU).(?-imsducxU)."); |
|
4691 } catch (PatternSyntaxException x) { |
|
4692 failCount++; |
|
4693 } |
|
4694 report("Embedded flags"); |
|
4695 } |
|
4696 |
4678 private static void grapheme() throws Exception { |
4697 private static void grapheme() throws Exception { |
4679 Files.lines(Paths.get(System.getProperty("test.src", "."), |
4698 Files.lines(Paths.get(System.getProperty("test.src", "."), |
4680 "GraphemeBreakTest.txt")) |
4699 "GraphemeBreakTest.txt")) |
4681 .filter( ln -> ln.length() != 0 && !ln.startsWith("#") ) |
4700 .filter( ln -> ln.length() != 0 && !ln.startsWith("#") ) |
4682 .forEach( ln -> { |
4701 .forEach( ln -> { |