Skip to content

Commit

Permalink
java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/Byte…
Browse files Browse the repository at this point in the history
…Buffer; #117
  • Loading branch information
Peter Firmstone committed Jul 7, 2020
1 parent fa11022 commit ceafc2f
Show file tree
Hide file tree
Showing 8 changed files with 2,024 additions and 2,029 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
package org.apache.river.jeri.internal.mux;

import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.Buffer;

/**
* ConnectionIO is an abstraction over a bi-directional byte stream
Expand Down Expand Up @@ -85,7 +85,7 @@ abstract class ConnectionIO {
* invocation of this method; therefore, the supplied buffer must not
* be mutated even after this method has returned.
*/
abstract void asyncSend(ByteBuffer buffer);
abstract void asyncSend(Buffer buffer);

/**
* Sends the sequence of bytes contained in the supplied buffers to the
Expand All @@ -100,7 +100,7 @@ abstract class ConnectionIO {
* invocation of this method; therefore, the supplied buffers must not
* be mutated even after this method has returned.
*/
abstract void asyncSend(ByteBuffer first, ByteBuffer second);
abstract void asyncSend(Buffer first, Buffer second);

/**
* Sends the sequence of bytes contained in the supplied buffers to the
Expand All @@ -121,5 +121,5 @@ abstract class ConnectionIO {
* failure). After the write has completed, each buffers' position will
* have been incremented to its limit (which will not have changed).
*/
abstract IOFuture futureSend(ByteBuffer first, ByteBuffer second);
abstract IOFuture futureSend(Buffer first, Buffer second);
}
Loading

0 comments on commit ceafc2f

Please sign in to comment.