avoiding even more NoSuchMethod exceptions (#6729)

* avoiding more NoSuchMethod exceptions

refs #6657

* avoiding even more NoSuchMethod exceptions

refs #6657
This commit is contained in:
Kamil Rojewski
2021-08-05 21:25:23 +02:00
committed by GitHub
parent a7b527d942
commit 6fb2c90d9e
4 changed files with 12 additions and 12 deletions

View File

@@ -151,9 +151,9 @@ public class Table {
protected ByteBuffer __vector_as_bytebuffer(int vector_offset, int elem_size) {
int o = __offset(vector_offset);
if (o == 0) return null;
ByteBuffer bb = this.bb.duplicate().order(ByteOrder.LITTLE_ENDIAN);
ByteBuffer bb = ((ByteBuffer) (((Buffer) this.bb).duplicate())).order(ByteOrder.LITTLE_ENDIAN);
int vectorstart = __vector(o);
((Buffer) bb).position(vectorstart);
bb.position(vectorstart);
bb.limit(vectorstart + __vector_len(o) * elem_size);
return bb;
}