< prev index next >

test/jdk/sun/nio/cs/TestIBMBugs.java

Print this page
rev 50935 : 8206436: sun/nio/cs/TestIBMBugs.java no longer compiles

@@ -173,11 +173,11 @@
             bb = s.getBytes("x-IBM970");
         }
     }
 
     private static void bug8202329() throws Exception {
-        String original = "\\\u007E\u00A5\u203E"; // "b"; \\ [backslash][tilde][yen][overscore]
+        String original = "\\\u007E\u00A5\u203E"; // [backslash][tilde][yen][overscore]
         byte[] expectedBytes; // bytes after conversion
         String expectedStringfromBytes; // String constructed from bytes
 
         Charset charset; // charset used for conversion
 

@@ -186,11 +186,11 @@
 
         CharBuffer cb; // Buffer that holds decoded chars
 
 
         // Test IBM943, where \ and ~ are encoded to unmappable i.e., 0x3f
-        // and ¥ andoverscore are encoded to 0x5c and 0x7e
+        // and [yen] and [overscore] are encoded to 0x5c and 0x7e
         charset = Charset.forName("IBM943");
         expectedBytes = new byte[] {0x3f, 0x3f, 0x5c, 0x7e};
         expectedStringfromBytes = "??\u00A5\u203E";
         bb = charset.encode(original);
         ba = new byte[bb.remaining()];

@@ -203,11 +203,11 @@
             throw new Exception("IBM943 failed to decode");
         }
 
 
         // Test IBM943C, where \ and ~ are encoded to 0x5c and 0x7e
-        // and ¥ an overscore are encoded to 0x5c and 0x7e
+        // and [yen] an [overscore] are encoded to 0x5c and 0x7e
         charset = Charset.forName("IBM943C");
         expectedBytes = new byte[] {0x5c, 0x7e, 0x5c, 0x7e};
         expectedStringfromBytes = "\\~\\~";
         bb = charset.encode(original);
         ba = new byte[bb.remaining()];
< prev index next >