Skip to content

Commit 998c24b

Browse files
authored
Merge pull request #927 from zhicwu/grpc-patch
Fix JDK 8 compatibility issue
2 parents bf6e14e + bc7702e commit 998c24b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clickhouse-client/src/main/java/com/clickhouse/client/stream/AbstractByteBufferInputStream.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public long pipe(ClickHouseOutputStream output) throws IOException {
8787
if (remain > 0) {
8888
if (b.hasArray()) {
8989
output.transferBytes(b.array(), b.position(), remain);
90-
b.limit(b.position());
90+
((Buffer) b).limit(b.position());
9191
} else {
9292
byte[] bytes = new byte[remain];
9393
buffer.get(bytes);

0 commit comments

Comments
 (0)