8039118: Windows build failure (j2pcsc.dll : fatal error unresolved external symbol throwByName)

Reviewed-by: mullan, mchung, alanb
This commit is contained in:
Chris Hegarty 2014-04-02 23:23:00 +01:00
parent c9c4f5fd72
commit 5cc2862287

View File

@ -64,10 +64,12 @@
#define J2PCSC_EXCEPTION_NAME "sun/security/smartcardio/PCSCException"
extern void throwByName(JNIEnv *, const char *, const char *);
void throwOutOfMemoryError(JNIEnv *env, const char *msg) {
throwByName(env, "java/lang/OutOfMemoryError", msg);
jclass cls = (*env)->FindClass(env, "java/lang/OutOfMemoryError");
if (cls != NULL) /* Otherwise an exception has already been thrown */
(*env)->ThrowNew(env, cls, msg);
}
void throwPCSCException(JNIEnv* env, LONG code) {