--- a/jdk/src/share/classes/sun/io/CharToByteDBCS_ASCII.java Fri Aug 28 16:53:44 2009 -0700
+++ b/jdk/src/share/classes/sun/io/CharToByteDBCS_ASCII.java Mon Aug 31 15:00:04 2009 -0700
@@ -91,7 +91,7 @@
}
// Is this a high surrogate?
- if (Surrogate.isHigh(inputChar)) {
+ if (Character.isHighSurrogate(inputChar)) {
// Is this the last character of the input?
if (charOff + inputSize >= inEnd) {
highHalfZoneCode = inputChar;
@@ -101,7 +101,7 @@
// Is there a low surrogate following?
inputChar = input[charOff + inputSize];
- if (Surrogate.isLow(inputChar)) {
+ if (Character.isLowSurrogate(inputChar)) {
// We have a valid surrogate pair. Too bad we don't do
// surrogates. Is substitution enabled?
if (subMode) {
@@ -125,7 +125,7 @@
}
}
// Is this an unaccompanied low surrogate?
- else if (Surrogate.isLow(inputChar)) {
+ else if (Character.isLowSurrogate(inputChar)) {
badInputLength = 1;
throw new MalformedInputException();
} else {