28 #include <graphlab.hpp>
33 using namespace graphlab;
41 mobj = env->NewGlobalRef(obj);
57 if (NULL == other.mobj){
64 this->mobj = env->NewGlobalRef(other.mobj);
71 if (
this == &other)
return *
this;
77 if (NULL != other.mobj){
78 obj = env->NewGlobalRef(other.mobj);
82 if (NULL != this->mobj){
83 env->DeleteGlobalRef(this->mobj);
99 env->DeleteGlobalRef(mobj);
104 mobj = env->NewGlobalRef(obj);
110 if (NULL == mobj)
return;
113 env->DeleteGlobalRef(mobj);
120 jthrowable exc = env->ExceptionOccurred();
121 if (!exc)
return false;
123 env->ExceptionDescribe();
124 env->ExceptionClear();
127 "java/lang/IllegalArgumentException",
128 "thrown from C code.");