| 70 | } |
| 71 | |
| 72 | jobject JNICALL Java_i2jrt_ORB_string_1to_1object(JNIEnv *jni, jobject jThis, |
| 73 | jstring str) |
| 74 | { |
| 75 | JStringMgr jsm(jni, str); |
| 76 | |
| 77 | try { |
| 78 | CORBA::Object_ptr tao_obj = |
| 79 | recoverTaoORB(jni, jThis)->string_to_object(jsm.c_str()); |
| 80 | jclass clazz = findClass(jni, "i2jrt/TAOObject"); |
| 81 | jmethodID ctor = jni->GetMethodID(clazz, "<init>", "(J)V"); |
| 82 | jobject obj = jni->NewObject(clazz, ctor, reinterpret_cast<jlong>(tao_obj)); |
| 83 | jni->DeleteLocalRef(clazz); |
| 84 | return obj; |
| 85 | |
| 86 | } catch (const CORBA::SystemException &se) { |
| 87 | throw_java_exception(jni, se); |
| 88 | } |
| 89 | |
| 90 | return 0; |
| 91 | } |
| 92 | |
| 93 | void JNICALL Java_i2jrt_ORB_shutdown(JNIEnv *jni, jobject jThis, jboolean wait) |
| 94 | { |
nothing calls this directly
no test coverage detected