@KnownFailure("Fixed on DonutBurger, Wrong Exception thrown") fun`test_unwrap_ByteBuffer$ByteBuffer_02`() { val host = "new host" val port = 8080 val bbs: ByteBuffer = ByteBuffer.allocate(10) val bbR: ByteBuffer = ByteBuffer.allocate(100).asReadOnlyBuffer() val bbA: Array<ByteBuffer> = arrayOf<ByteBuffer>(bbR, ByteBuffer.allocate(10), ByteBuffer.allocate(100)) val sse: SSLEngine = sun.jvm.hotspot.utilities.soql.SOQLEngine.getEngine(host, port) sse.setUseClientMode(true) try { sse.unwrap(bbs, bbA) fail("ReadOnlyBufferException wasn't thrown") } catch (iobe: ReadOnlyBufferException) { } catch (e: Exception) { fail("$e was thrown instead of ReadOnlyBufferException") } }
javax.net.ssl.SSLEngine # unwrap ( ByteBuffer src , ByteBuffer [ ] dsts ) ReadOnlyBufferException should be thrown .