HADOOP-17630. [JDK 15] TestPrintableString fails due to Unicode 13.0 support. (#2890)

Reviewed-by: Wei-Chiu Chuang <weichiu@apache.org>
This commit is contained in:
Akira Ajisaka 2021-04-13 17:08:49 +09:00 committed by GitHub
parent 82462739f8
commit 156ecc89be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -76,8 +76,8 @@ public class TestPrintableString {
"x\uDB80\uDC00y\uDBFF\uDFFDz\u1050", "x?y?z\u1050");
// Unassigned Unicode
expect("Should replace unassigned U+30000 and U+DFFFF",
"-\uD880\uDC00-\uDB3F\uDFFF-", "-?-?-");
expect("Should replace unassigned U+DFFFF",
"-\uDB3F\uDFFF-", "-?-");
// Standalone surrogate character (not in a pair)
expect("Should replace standalone surrogate U+DB80", "x\uDB80yz", "x?yz");