Skip to content

Commit ac71396

Browse files
author
Johan Vos
committed
8232929: Duplicate symbols when building static libraries
Reviewed-by: kcr
1 parent ab6ea3b commit ac71396

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

modules/javafx.graphics/src/main/native-prism-sw/JNIUtil.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ initializeFieldIds(jfieldID* dest, JNIEnv* env, jclass classHandle,
4949
while (fields->name != NULL) {
5050
*dest = (*env)->GetFieldID(env, classHandle, fields->name,
5151
fields->signature);
52-
checkAndClearException(env);
52+
prismsw_checkAndClearException(env);
5353
if (*dest == NULL) {
5454
retVal = JNI_FALSE;
5555
break;
@@ -69,7 +69,7 @@ initializeStaticFieldIds(jfieldID* dest, JNIEnv* env, jclass classHandle,
6969
while (fields->name != NULL) {
7070
*dest = (*env)->GetStaticFieldID(env, classHandle, fields->name,
7171
fields->signature);
72-
checkAndClearException(env);
72+
prismsw_checkAndClearException(env);
7373
if (*dest == NULL) {
7474
retVal = JNI_FALSE;
7575
break;
@@ -99,7 +99,7 @@ JNI_ThrowNew(JNIEnv* env, const char* throwable, const char* message) {
9999
}
100100

101101
jboolean
102-
checkAndClearException(JNIEnv *env) {
102+
prismsw_checkAndClearException(JNIEnv *env) {
103103
if (!(*env)->ExceptionCheck(env)) {
104104
return JNI_FALSE;
105105
}

modules/javafx.graphics/src/main/native-prism-sw/JNIUtil.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ jboolean initializeStaticFieldIds(jfieldID* dest, JNIEnv* env,
4343

4444
void JNI_ThrowNew(JNIEnv* env, const char* throwable, const char* message);
4545

46-
jboolean checkAndClearException(JNIEnv *env);
46+
jboolean prismsw_checkAndClearException(JNIEnv *env);
4747

4848
#endif

modules/javafx.graphics/src/main/native-prism-sw/JPiscesRenderer.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ initializeObjectFieldIds(JNIEnv *env,
332332
classHandle = (*env)->GetObjectClass(env, objectHandle);
333333
} else if (className != 0) {
334334
classHandle = (*env)->FindClass(env, className);
335-
if (checkAndClearException(env)) return JNI_FALSE;
335+
if (prismsw_checkAndClearException(env)) return JNI_FALSE;
336336
} else {
337337
return JNI_FALSE;
338338
}

0 commit comments

Comments
 (0)