mirror of
https://github.com/xerial/snappy-java.git
synced 2025-04-08 19:35:08 +02:00
Avoid explicit class name in throw_exception. (#291)
This commit is contained in:
parent
2702f510e8
commit
f3d7c11a02
@ -20,7 +20,7 @@
|
||||
|
||||
inline void throw_exception(JNIEnv *env, jobject self, int errorCode)
|
||||
{
|
||||
jclass c = env->FindClass("org/xerial/snappy/SnappyNative");
|
||||
jclass c = env->GetObjectClass(self);
|
||||
if(c==0)
|
||||
return;
|
||||
jmethodID mth_throwex = env->GetMethodID(c, "throw_error", "(I)V");
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user