diff --git a/java/org/brotli/dec/DictionaryData.java b/java/org/brotli/dec/DictionaryData.java index a65e812..cdff059 100644 --- a/java/org/brotli/dec/DictionaryData.java +++ b/java/org/brotli/dec/DictionaryData.java @@ -7,6 +7,7 @@ package org.brotli.dec; import java.io.UnsupportedEncodingException; +import java.nio.Buffer; import java.nio.ByteBuffer; /** @@ -53,7 +54,7 @@ final class DictionaryData { static { ByteBuffer dictionary = ByteBuffer.allocateDirect(122784); unpackDictionaryData(dictionary, DATA0, DATA1, SKIP_FLIP); - dictionary.flip(); + ((Buffer) dictionary).flip(); Dictionary.setData(dictionary.asReadOnlyBuffer()); } }