Since JNI's FindClass is defined to throw a class not found exception, changed JavaPackage_resolve to clear the exception if one occurred. Otherwise, other operations may fail later.
git-svn-id: svn://10.0.0.236/branches/OJI_19980618_BRANCH@6450 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -188,6 +188,9 @@ JavaPackage_resolve(JSContext *cx, JSObject *obj, jsval id)
|
||||
goto out;
|
||||
}
|
||||
} else {
|
||||
/* beard: if an exception occurred, shouldn't this clear it? */
|
||||
if ((*jEnv)->ExceptionOccurred(jEnv))
|
||||
(*jEnv)->ExceptionClear(jEnv);
|
||||
|
||||
/*
|
||||
* If there's no class of the given name, then we must be referring to
|
||||
|
||||
Reference in New Issue
Block a user