Imported Upstream version 1.1.0
[platform/upstream/iotivity.git] / service / resource-container / android / resource-container / src / main / jni / util / JavaExceptions.cpp
index 4774a72..b1e13a0 100644 (file)
@@ -32,26 +32,26 @@ namespace
     jmethodID g_ctor_PlatformException;
 }
 
-void initJavaExceptions(JNIEnvWrapper *env)
+void initJavaExceptions(JNIEnvWrapperenv)
 {
-    g_cls_PlatformException = env->FindClassAsGlobalRef(EXC_NAME_PLATFORM);
+    /*g_cls_PlatformException = env->FindClassAsGlobalRef(EXC_NAME_PLATFORM);
     g_ctor_PlatformException = env->GetConstructorID(g_cls_PlatformException,
-                               "(" AS_SIG(CLS_NAME_STRING) "I)V");
+            "(" AS_SIG(CLS_NAME_STRING) "I)V");*/
 }
 
-void clearJavaExceptions(JNIEnvWrapper *env)
+void clearJavaExceptions(JNIEnvWrapperenv)
 {
-    env->DeleteGlobalRef(g_cls_PlatformException);
+    //env->DeleteGlobalRef(g_cls_PlatformException);
 }
 
-void throwPlatformException(JNIEnv *env, const OIC::Service::RCSPlatformException &e)
+void throwPlatformException(JNIEnv* env, const OIC::Service::RCSPlatformException& e)
 {
-    auto msg = newStringObject(env, e.getReason());
+    /*auto msg = newStringObject(env, e.getReason());
     VERIFY_NO_EXC(env);
 
     auto exObj = env->NewObject(g_cls_PlatformException, g_ctor_PlatformException,
-                                msg, e.getReasonCode());
+            msg, e.getReasonCode());
     VERIFY_NO_EXC(env);
 
-    env->Throw(static_cast< jthrowable >(exObj));
+    env->Throw(static_cast< jthrowable >(exObj));*/
 }