< prev index next >

src/java.base/share/native/libjli/java.c

Print this page

        

*** 1515,1524 **** --- 1515,1525 ---- NULL_CHECK0(makePlatformStringMID = (*env)->GetStaticMethodID(env, cls, "makePlatformString", "(Z[B)Ljava/lang/String;")); } str = (*env)->CallStaticObjectMethod(env, cls, makePlatformStringMID, USE_STDERR, ary); + CHECK_EXCEPTION_RETURN_VALUE(0); (*env)->DeleteLocalRef(env, ary); return str; } } return 0;
*** 1583,1599 **** static jclass GetApplicationClass(JNIEnv *env) { jmethodID mid; jclass cls = GetLauncherHelperClass(env); NULL_CHECK0(cls); NULL_CHECK0(mid = (*env)->GetStaticMethodID(env, cls, "getApplicationClass", "()Ljava/lang/Class;")); ! return (*env)->CallStaticObjectMethod(env, cls, mid); } static char* expandWildcardOnLongOpt(char* arg) { char *p, *value; size_t optLen, valueLen; --- 1584,1603 ---- static jclass GetApplicationClass(JNIEnv *env) { jmethodID mid; + jclass appClass; jclass cls = GetLauncherHelperClass(env); NULL_CHECK0(cls); NULL_CHECK0(mid = (*env)->GetStaticMethodID(env, cls, "getApplicationClass", "()Ljava/lang/Class;")); ! appClass = (*env)->CallStaticObjectMethod(env, cls, mid); ! CHECK_EXCEPTION_RETURN_VALUE(0); ! return appClass; } static char* expandWildcardOnLongOpt(char* arg) { char *p, *value; size_t optLen, valueLen;
< prev index next >