]> rtime.felk.cvut.cz Git - orte.git/blobdiff - orte/libjorte/setRecvInfo.c
JORTE: prepare for Android (fix class loader problems + add logging)
[orte.git] / orte / libjorte / setRecvInfo.c
index 038ffd9f1a1ca9aad257351548b97f5569dee175..1a783430dffc51f3e2c2c62b43a161d4df097121 100644 (file)
@@ -19,7 +19,7 @@ int setRecvInfo(JNIEnv *env, const ORTERecvInfo *rinfo, jobject obj)
   do
   {
     // find cls
-    cls = (*env)->FindClass(env, "org/ocera/orte/types/RecvInfo");
+    cls = findClass(env, "org.ocera.orte.types.RecvInfo");
     if(cls == 0)
     {
       #ifdef TEST_STAGE
@@ -63,7 +63,7 @@ int setRecvInfo(JNIEnv *env, const ORTERecvInfo *rinfo, jobject obj)
     }
 /////////////////////////////////////////////////
     // find cls - GUID_RTPS
-    cls_tmp = (*env)->FindClass(env, "org/ocera/orte/types/GUID_RTPS");
+    cls_tmp = findClass(env, "org.ocera.orte.types.GUID_RTPS");
     if(cls_tmp == 0)
     {
       #ifdef TEST_STAGE
@@ -119,7 +119,7 @@ int setRecvInfo(JNIEnv *env, const ORTERecvInfo *rinfo, jobject obj)
                            obj_tmp);
 /////////////////////////////////////////////////
     // find cls - NtpTime
-    cls_tmp = (*env)->FindClass(env, "org/ocera/orte/types/NtpTime");
+    cls_tmp = findClass(env, "org.ocera.orte.types.NtpTime");
     if(cls_tmp == 0)
     {
       #ifdef TEST_STAGE
@@ -233,7 +233,7 @@ int setRecvInfo(JNIEnv *env, const ORTERecvInfo *rinfo, jobject obj)
                            obj_tmp);
 /////////////////////////////////////////////////
     // find cls - SequenceNumber
-    cls_tmp = (*env)->FindClass(env,"org/ocera/orte/types/SequenceNumber");
+    cls_tmp = findClass(env,"org.ocera.orte.types.SequenceNumber");
     if(cls_tmp == 0)
     {
       #ifdef TEST_STAGE