diff --git a/src/java.base/share/classes/java/util/Locale.java b/src/java.base/share/classes/java/util/Locale.java index a5ac0ae5bf7..9c745c1731b 100644 --- a/src/java.base/share/classes/java/util/Locale.java +++ b/src/java.base/share/classes/java/util/Locale.java @@ -385,10 +385,10 @@ import sun.util.locale.provider.TimeZoneNameUtility; * {@snippet lang = java: * var number = 1000; * NumberFormat.getCurrencyInstance(Locale.US).format(number); // returns "$1,000.00" - * NumberFormat.getCurrencyInstance(Locale.JAPAN).format(number); // returns "\u00A51,000"" + * NumberFormat.getCurrencyInstance(Locale.JAPAN).format(number); // returns "¥1,000"" * var date = LocalDate.of(2024, 1, 1); * DateTimeFormatter.ofLocalizedDate(FormatStyle.LONG).localizedBy(Locale.US).format(date); // returns "January 1, 2024" - * DateTimeFormatter.ofLocalizedDate(FormatStyle.LONG).localizedBy(Locale.JAPAN).format(date); // returns "2024\u5e741\u67081\u65e5" + * DateTimeFormatter.ofLocalizedDate(FormatStyle.LONG).localizedBy(Locale.JAPAN).format(date); // returns "2024年1月1日" * } * *
myAction.putValue(Action.MNEMONIC_KEY, KeyEvent.VK_A)
* sets the mnemonic of myAction
to 'a', while
- * myAction.putValue(Action.MNEMONIC_KEY, KeyEvent.getExtendedKeyCodeForChar('\u0444'))
+ * myAction.putValue(Action.MNEMONIC_KEY, KeyEvent.getExtendedKeyCodeForChar('ф'))
* sets the mnemonic of myAction
to Cyrillic letter "Ef".
*
* @since 1.3
diff --git a/test/jdk/java/awt/event/KeyEvent/KeyTyped/EscapeKeyTyped.java b/test/jdk/java/awt/event/KeyEvent/KeyTyped/EscapeKeyTyped.java
index 6410fc4bad8..51fb3fedaba 100644
--- a/test/jdk/java/awt/event/KeyEvent/KeyTyped/EscapeKeyTyped.java
+++ b/test/jdk/java/awt/event/KeyEvent/KeyTyped/EscapeKeyTyped.java
@@ -87,7 +87,7 @@ public class EscapeKeyTyped {
public void keyPressed(KeyEvent e) {
printKey(e);
int keychar = e.getKeyChar();
- if (keychar == 27) { // Escape character is 27 or \u0021
+ if (keychar == 27) { // Escape character is 27 or \u001b
escapeKeyTypedReceived = true;
}
}
diff --git a/test/jdk/java/awt/print/RemotePrinterStatusRefresh/RemotePrinterStatusRefresh.java b/test/jdk/java/awt/print/RemotePrinterStatusRefresh/RemotePrinterStatusRefresh.java
index 7768c54481a..33fe9fc86d3 100644
--- a/test/jdk/java/awt/print/RemotePrinterStatusRefresh/RemotePrinterStatusRefresh.java
+++ b/test/jdk/java/awt/print/RemotePrinterStatusRefresh/RemotePrinterStatusRefresh.java
@@ -185,7 +185,7 @@ public class RemotePrinterStatusRefresh extends WindowAdapter {
+ "Step 3: Compare the list of printers in \"Before\" and "
+ "\"After\" lists.\n"
+ " Added printers are highlighted with "
- + "green color, removed ones \u2014 with "
+ + "green color, removed ones with "
+ "red color.\n"
+ "Step 4: Click Pass if the list of printers is correctly "
+ "updated.\n"
diff --git a/test/jdk/java/nio/file/Path/UriImportExport.java b/test/jdk/java/nio/file/Path/UriImportExport.java
index 934098096b6..2ab93ee399e 100644
--- a/test/jdk/java/nio/file/Path/UriImportExport.java
+++ b/test/jdk/java/nio/file/Path/UriImportExport.java
@@ -128,7 +128,7 @@ public class UriImportExport {
testUri("file:///foo/bar/doesnotexist");
testUri("file:/foo/bar/doesnotexist");
- // file:///foo/bar/\u0440\u0443\u0441\u0441\u043A\u0438\u0439 (Russian)
+ // file:///foo/bar/русский (Russian)
testUri("file:///foo/bar/%D1%80%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9");
// invalid
diff --git a/test/jdk/java/util/Currency/ValidateISO4217.java b/test/jdk/java/util/Currency/ValidateISO4217.java
index 6996045fc3a..67793dcbecb 100644
--- a/test/jdk/java/util/Currency/ValidateISO4217.java
+++ b/test/jdk/java/util/Currency/ValidateISO4217.java
@@ -131,7 +131,7 @@ public class ValidateISO4217 {
*/
{"GS", "GBP", "826", "2"}, // South Georgia And The South Sandwich Islands
/* Not defined in ISO 4217 list, but defined in .properties file. */
- {"AX", "EUR", "978", "2"}, // \u00c5LAND ISLANDS
+ {"AX", "EUR", "978", "2"}, // ÅLAND ISLANDS
{"PS", "ILS", "376", "2"}, // Palestinian Territory, Occupied
/* Not defined in ISO 4217 list, but added in ISO 3166 country code list */
{"JE", "GBP", "826", "2"}, // Jersey
diff --git a/test/jdk/java/util/Locale/LocaleProvidersFormat.java b/test/jdk/java/util/Locale/LocaleProvidersFormat.java
index 5d3f1fc2e2e..157e92ce8a3 100644
--- a/test/jdk/java/util/Locale/LocaleProvidersFormat.java
+++ b/test/jdk/java/util/Locale/LocaleProvidersFormat.java
@@ -85,7 +85,7 @@ public class LocaleProvidersFormat {
/*
* 8027289: Ensure if underlying system format locale is zh_CN, the Window's currency
- * symbol under HOST provider is \u00A5, the yen (yuan) sign.
+ * symbol under HOST provider is ¥, the yen (yuan) sign.
*/
@Test
@EnabledOnOs(WINDOWS)
diff --git a/test/jdk/tools/jpackage/helpers/jdk/jpackage/test/FileAssociations.java b/test/jdk/tools/jpackage/helpers/jdk/jpackage/test/FileAssociations.java
index f8dc10c3dd0..ebdbb474006 100644
--- a/test/jdk/tools/jpackage/helpers/jdk/jpackage/test/FileAssociations.java
+++ b/test/jdk/tools/jpackage/helpers/jdk/jpackage/test/FileAssociations.java
@@ -135,7 +135,7 @@ public final class FileAssociations {
// To test unicode arguments on Windows manually:
// 1. add the following argument ("Hello" in Bulgarian) to the
- // additionalArgs list: "\u0417\u0434\u0440\u0430\u0432\u0435\u0439\u0442\u0435"
+ // additionalArgs list: "Здравейте"
// 2. in Control Panel -> Region -> Administrative -> Language for non-Unicode programs
// change the system locale to "Bulgarian (Bulgaria)"
// 3. reboot Windows and re-run the test
diff --git a/test/langtools/jdk/javadoc/doclet/testRelativeLinks/pkg/C.java b/test/langtools/jdk/javadoc/doclet/testRelativeLinks/pkg/C.java
index e2f2d1f6f43..79a09b4f240 100644
--- a/test/langtools/jdk/javadoc/doclet/testRelativeLinks/pkg/C.java
+++ b/test/langtools/jdk/javadoc/doclet/testRelativeLinks/pkg/C.java
@@ -33,7 +33,7 @@ package pkg;
public class C {
/**
- * Here is a relative link in a field:\u0130
+ * Here is a relative link in a field:
* relative field link.
*/
public C field = null;
diff --git a/test/langtools/tools/javac/api/guide/Test.java b/test/langtools/tools/javac/api/guide/Test.java
index 64b2a304016..5bf881a590c 100644
--- a/test/langtools/tools/javac/api/guide/Test.java
+++ b/test/langtools/tools/javac/api/guide/Test.java
@@ -25,7 +25,7 @@
* @test
* @bug 6427274 6347778 6469079
* @summary Various bugs fixed while writing Compiler API Guide
- * @author Peter von der Ah\u0081
+ * @author Peter von der Ahé
* @library ../lib
* @modules java.compiler
* jdk.compiler