HDFS-14047. [libhdfs++] Fix hdfsGetLastExceptionRootCause bug in test_libhdfs_threaded.c
(Contributed by Antoli Shein via Daniel Templeton) Change-Id: Ia5546fd5f8270f285c373b9023a9bd9835059845
This commit is contained in:
parent
ab6aa4c726
commit
349168c4b3
@ -130,7 +130,7 @@ static char* getExceptionUtilString(JNIEnv *env, jthrowable exc, char *methodNam
|
|||||||
jstring jStr = NULL;
|
jstring jStr = NULL;
|
||||||
char *excString = NULL;
|
char *excString = NULL;
|
||||||
jthr = invokeMethod(env, &jVal, STATIC, NULL,
|
jthr = invokeMethod(env, &jVal, STATIC, NULL,
|
||||||
"org/apache/commons/lang/exception/ExceptionUtils",
|
"org/apache/commons/lang3/exception/ExceptionUtils",
|
||||||
methodName, "(Ljava/lang/Throwable;)Ljava/lang/String;", exc);
|
methodName, "(Ljava/lang/Throwable;)Ljava/lang/String;", exc);
|
||||||
if (jthr) {
|
if (jthr) {
|
||||||
destroyLocalReference(env, jthr);
|
destroyLocalReference(env, jthr);
|
||||||
|
Loading…
Reference in New Issue
Block a user