|
1 | 1 | /*
|
2 |
| - * Copyright (c) 1996, 2016, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 1996, 2021, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
4 | 4 | *
|
5 | 5 | * This code is free software; you can redistribute it and/or modify it
|
|
25 | 25 | * @test
|
26 | 26 | * @bug 4035266 4052418 4068133 4068137 4068139 4086052 4095322 4097779
|
27 | 27 | * 4097920 4098467 4111338 4113835 4117554 4143071 4146175 4152117
|
28 |
| - * 4152416 4153072 4158381 4214367 4217703 4638433 |
| 28 | + * 4152416 4153072 4158381 4214367 4217703 4638433 8264765 |
29 | 29 | * @library /java/text/testlib
|
30 | 30 | * @run main/timeout=2000 BreakIteratorTest
|
31 | 31 | * @summary test BreakIterator
|
@@ -746,6 +746,17 @@ public void TestBug4152117() {
|
746 | 746 | generalIteratorTest(sentenceBreak, sentenceSelectionData);
|
747 | 747 | }
|
748 | 748 |
|
| 749 | + public void TestBug8264765() { |
| 750 | + Vector<String> sentenceSelectionData = new Vector<String>(); |
| 751 | + |
| 752 | + // Comma should not be regarded as the start of a sentence, |
| 753 | + // otherwise the backwards rule would break the following sentence. |
| 754 | + sentenceSelectionData.addElement( |
| 755 | + "Due to a problem (e.g., software bug), the server is down. "); |
| 756 | + |
| 757 | + generalIteratorTest(sentenceBreak, sentenceSelectionData); |
| 758 | + } |
| 759 | + |
749 | 760 | public void TestLineBreak() {
|
750 | 761 | Vector<String> lineSelectionData = new Vector<String>();
|
751 | 762 |
|
|
0 commit comments