< prev index next >
test/jdk/java/lang/String/SpecialCasingTest.java
Print this page
rev 54996 : 8221431: Support for Unicode 12.1
Reviewed-by:
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -24,11 +24,13 @@
*/
/*
* @test
* @bug 4397357 6565620 6959267 7070436 7198195 8041791 8032446 8072600
+ * 8221431
* @summary Confirm special case mappings are handled correctly.
+ * @library /lib/testlibrary/java/lang
*/
import java.io.BufferedReader;
import java.io.IOException;
import java.nio.file.Files;
@@ -135,12 +137,11 @@
defaultLang.equals("tr")) {
specificLocale = true;
} else {
specificLocale = false;
}
- in = Files.newBufferedReader(Paths.get(System.getProperty("test.src.path"), "..", "/Character/SpecialCasing.txt")
- .toRealPath());
+ in = Files.newBufferedReader(UCDFiles.SPECIAL_CASING.toRealPath());
String line;
while ((line = in.readLine()) != null) {
if (line.length() == 0 || line.charAt(0) == '#') {
continue;
}
< prev index next >