mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-19 18:07:49 +00:00
8039118: Windows build failure (j2pcsc.dll : fatal error unresolved external symbol throwByName)
Reviewed-by: mullan, mchung, alanb
This commit is contained in:
parent
c9c4f5fd72
commit
5cc2862287
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user