Fixes issue 37

Using a correcto class descriptor. This change will be available in next release.
This commit is contained in:
Taro L. Saito 2012-01-19 12:53:47 +09:00
parent 72383d990c
commit 04140959b0
4 changed files with 2 additions and 1 deletions

View File

@ -154,6 +154,7 @@ public class SnappyInputStream extends InputStream
public int rawRead(Object array, int byteOffset, int byteLength) throws IOException {
int writtenBytes = 0;
for (; writtenBytes < byteLength;) {
if (uncompressedCursor >= uncompressedLimit) {
if (hasNextChunk())
continue;

View File

@ -20,7 +20,7 @@
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)
return;
jmethodID mth_throwex = env->GetMethodID(c, "throw_error", "(I)V");