Skip to content

Commit bc7702e

Browse files
committed
Fix JDK 8 compatibility issue
1 parent fde782b commit bc7702e

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

Lines changed: 1 addition & 1 deletion
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)