| 12 | #include "tao/SystemException.h" |
| 13 | |
| 14 | CORBA::Object_ptr recoverTaoObject(JNIEnv *jni, jobject source) |
| 15 | { |
| 16 | if (!source) return CORBA::Object::_nil(); |
| 17 | |
| 18 | jclass clazz = jni->FindClass("i2jrt/TAOObject"); |
| 19 | jfieldID fid = jni->GetFieldID(clazz, "_jni_ptr", "J"); |
| 20 | jlong _jni_ptr = jni->GetLongField(source, fid); |
| 21 | jni->DeleteLocalRef(clazz); |
| 22 | return reinterpret_cast<CORBA::Object_ptr>(_jni_ptr); |
| 23 | } |
| 24 | |
| 25 | void JNICALL Java_i2jrt_TAOObject__1jni_1fini(JNIEnv *jni, jobject jThis) |
| 26 | { |
no outgoing calls
no test coverage detected