projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 1.1.0
[platform/upstream/iotivity.git]
/
service
/
resource-container
/
android
/
resource-container
/
src
/
main
/
jni
/
util
/
JavaExceptions.cpp
diff --git
a/service/resource-container/android/resource-container/src/main/jni/util/JavaExceptions.cpp
b/service/resource-container/android/resource-container/src/main/jni/util/JavaExceptions.cpp
index
4774a72
..
b1e13a0
100644
(file)
--- a/
service/resource-container/android/resource-container/src/main/jni/util/JavaExceptions.cpp
+++ b/
service/resource-container/android/resource-container/src/main/jni/util/JavaExceptions.cpp
@@
-32,26
+32,26
@@
namespace
jmethodID g_ctor_PlatformException;
}
jmethodID g_ctor_PlatformException;
}
-void initJavaExceptions(JNIEnvWrapper
*
env)
+void initJavaExceptions(JNIEnvWrapper
*
env)
{
{
- g_cls_PlatformException = env->FindClassAsGlobalRef(EXC_NAME_PLATFORM);
+
/*
g_cls_PlatformException = env->FindClassAsGlobalRef(EXC_NAME_PLATFORM);
g_ctor_PlatformException = env->GetConstructorID(g_cls_PlatformException,
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(JNIEnvWrapper
*
env)
{
{
- 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,
VERIFY_NO_EXC(env);
auto exObj = env->NewObject(g_cls_PlatformException, g_ctor_PlatformException,
-
msg, e.getReasonCode());
+ msg, e.getReasonCode());
VERIFY_NO_EXC(env);
VERIFY_NO_EXC(env);
- env->Throw(static_cast< jthrowable >(exObj));
+ env->Throw(static_cast< jthrowable >(exObj));
*/
}
}