--- a/jdk/test/java/nio/charset/coders/Surrogates.java Wed Jun 30 16:11:31 2010 -0700
+++ b/jdk/test/java/nio/charset/coders/Surrogates.java Wed Jun 30 16:11:32 2010 -0700
@@ -42,9 +42,8 @@
static void initData() throws IOException {
StringBuffer sb = new StringBuffer();
for (int i = 0; i < LEN; i++) {
- int c = Surrogate.UCS4_SURROGATE_MIN + 1;
- sb.append(Surrogate.high(c));
- sb.append(Surrogate.low(c));
+ int c = Character.MIN_SUPPLEMENTARY_CODE_POINT + 1;
+ sb.append(Character.toChars(c));
}
input = sb.toString().toCharArray();
ByteArrayOutputStream bos = new ByteArrayOutputStream();