jdk/test/sun/nio/cs/TestUTF_32.java
changeset 27292 7ff4b24b33ce
parent 5506 202f599c92aa
equal deleted inserted replaced
27291:42769f9ca831 27292:7ff4b24b33ce
   182 
   182 
   183         // Test 8: Overflow
   183         // Test 8: Overflow
   184         if (CoderResult.OVERFLOW !=
   184         if (CoderResult.OVERFLOW !=
   185             Charset.forName("UTF_32")
   185             Charset.forName("UTF_32")
   186             .newDecoder()
   186             .newDecoder()
   187             .decode((ByteBuffer)(ByteBuffer.allocate(4)
   187             .decode((ByteBuffer.allocate(4)
   188                                  .put(new byte[]
   188                                  .put(new byte[]
   189                                       {(byte)0,(byte)1, (byte)0,(byte)01})
   189                                       {(byte)0,(byte)1, (byte)0,(byte)01})
   190                                  .flip()),
   190                                  .flip()),
   191                     CharBuffer.allocate(1),
   191                     CharBuffer.allocate(1),
   192                     true)) {
   192                     true)) {