test/sun/nio/cs/TestUTF_16.java

Print this page

        

*** 148,158 **** // Test 5: if (CoderResult.OVERFLOW != Charset.forName("UTF_16") .newDecoder() ! .decode((ByteBuffer)(ByteBuffer.allocate(4) .put(new byte[] {(byte)0xd8,(byte)0x00, (byte)0xdc,(byte)0x01}) .flip()), CharBuffer.allocate(1), --- 148,158 ---- // Test 5: if (CoderResult.OVERFLOW != Charset.forName("UTF_16") .newDecoder() ! .decode((ByteBuffer.allocate(4) .put(new byte[] {(byte)0xd8,(byte)0x00, (byte)0xdc,(byte)0x01}) .flip()), CharBuffer.allocate(1),