Skip to content

Commit

Permalink
Avoid explicit class name in throw_exception. (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Oct 20, 2021
1 parent 2702f51 commit f3d7c11
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/xerial/snappy/SnappyNative.cpp
Expand Up @@ -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");
Expand Down
Binary file not shown.

0 comments on commit f3d7c11

Please sign in to comment.