test/sun/nio/cs/TestUTF_32.java

Print this page

        

*** 182,192 **** // Test 8: Overflow if (CoderResult.OVERFLOW != Charset.forName("UTF_32") .newDecoder() ! .decode((ByteBuffer)(ByteBuffer.allocate(4) .put(new byte[] {(byte)0,(byte)1, (byte)0,(byte)01}) .flip()), CharBuffer.allocate(1), true)) { --- 182,192 ---- // Test 8: Overflow if (CoderResult.OVERFLOW != Charset.forName("UTF_32") .newDecoder() ! .decode((ByteBuffer.allocate(4) .put(new byte[] {(byte)0,(byte)1, (byte)0,(byte)01}) .flip()), CharBuffer.allocate(1), true)) {