mirror of
https://github.com/xerial/snappy-java.git
synced 2025-07-25 23:14:34 +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)
|
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)
|
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.
Loading…
x
Reference in New Issue
Block a user