GH-3470: Resolve JDK8 Runtime Problem

Resolves https://github.com/spring-projects/spring-integration/issues/3470

Also fix `ByteBuffer.clear()`.
This commit is contained in:
Gary Russell
2021-01-22 11:52:22 -05:00
parent 6ff5eac86c
commit f5b671c28c

View File

@@ -458,7 +458,7 @@ public class TcpNioConnection extends TcpConnectionSupport {
logger.trace(getConnectionId() + " Sending " + rawBufferToSend.limit() + " to pipe");
}
this.channelInputStream.write(rawBufferToSend);
rawBufferToSend.clear();
((Buffer) rawBufferToSend).clear();
}
private void checkForAssembler() {