mirror of
https://github.com/xerial/snappy-java.git
synced 2025-07-27 07:54:17 +02:00
Fixes issue 37
Using a correcto class descriptor. This change will be available in next release.
This commit is contained in:
parent
72383d990c
commit
04140959b0
@ -154,6 +154,7 @@ public class SnappyInputStream extends InputStream
|
|||||||
public int rawRead(Object array, int byteOffset, int byteLength) throws IOException {
|
public int rawRead(Object array, int byteOffset, int byteLength) throws IOException {
|
||||||
int writtenBytes = 0;
|
int writtenBytes = 0;
|
||||||
for (; writtenBytes < byteLength;) {
|
for (; writtenBytes < byteLength;) {
|
||||||
|
|
||||||
if (uncompressedCursor >= uncompressedLimit) {
|
if (uncompressedCursor >= uncompressedLimit) {
|
||||||
if (hasNextChunk())
|
if (hasNextChunk())
|
||||||
continue;
|
continue;
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
void throw_exception(JNIEnv *env, jobject self, int errorCode)
|
void throw_exception(JNIEnv *env, jobject self, int errorCode)
|
||||||
{
|
{
|
||||||
jclass c = env->FindClass("Lorg/xerial/snappy/SnappyNative;");
|
jclass c = env->FindClass("org/xerial/snappy/SnappyNative");
|
||||||
if(c==0)
|
if(c==0)
|
||||||
return;
|
return;
|
||||||
jmethodID mth_throwex = env->GetMethodID(c, "throw_error", "(I)V");
|
jmethodID mth_throwex = env->GetMethodID(c, "throw_error", "(I)V");
|
||||||
|
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user