Skip to content

Commit a912257

Browse files
committed
Remove isOtherLowercase and isOtherUppercase from the Character models.
These were removed in upstream commit https://github.com/openjdk/jdk/pull/2846/files and are now creating problems when trying to build the models library with openJDK-17.
1 parent 0bf463e commit a912257

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/main/java/java/lang/Character.java

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5459,8 +5459,11 @@ public static boolean isLowerCase(char ch) {
54595459
* @since 1.5
54605460
*/
54615461
public static boolean isLowerCase(int codePoint) {
5462-
return getType(codePoint) == Character.LOWERCASE_LETTER ||
5463-
CharacterData.of(codePoint).isOtherLowercase(codePoint);
5462+
return getType(codePoint) == Character.LOWERCASE_LETTER;
5463+
// This code has been simplified in the upstream JDK repository
5464+
// at https://github.com/openjdk/jdk/pull/2846/files. The change
5465+
// below is to bring the code at parity with openJDK.
5466+
// || CharacterData.of(codePoint).isOtherLowercase(codePoint);
54645467
}
54655468

54665469
/**
@@ -5525,8 +5528,11 @@ public static boolean isUpperCase(char ch) {
55255528
* @since 1.5
55265529
*/
55275530
public static boolean isUpperCase(int codePoint) {
5528-
return getType(codePoint) == Character.UPPERCASE_LETTER ||
5529-
CharacterData.of(codePoint).isOtherUppercase(codePoint);
5531+
return getType(codePoint) == Character.UPPERCASE_LETTER;
5532+
// // This code has been simplified in the upstream JDK repository
5533+
// at https://github.com/openjdk/jdk/pull/2846/files. The change
5534+
// below is to bring the code at parity with openJDK.
5535+
// || CharacterData.of(codePoint).isOtherUppercase(codePoint);
55305536
}
55315537

55325538
/**

0 commit comments

Comments
 (0)