Skip to content

Commit

Permalink
8304717: Declaration aliasing between boolean and jboolean is wrong
Browse files Browse the repository at this point in the history
Reviewed-by: dholmes
  • Loading branch information
TheShermanTanker committed Apr 11, 2023
1 parent 2586f36 commit cd7d53c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/java.base/windows/native/libjli/java_md.c
Expand Up @@ -814,7 +814,7 @@ jclass FindBootStrapClass(JNIEnv *env, const char *classname)
}

void
InitLauncher(boolean javaw)
InitLauncher(jboolean javaw)
{
INITCOMMONCONTROLSEX icx;

Expand Down
Expand Up @@ -2637,7 +2637,7 @@ JNIEXPORT jint JNICALL Java_sun_awt_windows_WPrinterJob_getGDIAdvance
*/
JNIEXPORT void JNICALL Java_sun_awt_windows_WPrinterJob_textOut
(JNIEnv *env, jobject self, jlong printDC, jstring text, jint strLen,
boolean glyphCodes, jfloat x, jfloat y, jfloatArray positions)
jboolean glyphCodes, jfloat x, jfloat y, jfloatArray positions)
{

long posX = ROUND_TO_LONG(x);
Expand Down
10 changes: 5 additions & 5 deletions src/java.prefs/macosx/native/libprefs/MacOSXPreferencesFile.m
Expand Up @@ -659,7 +659,7 @@ static void createTreeForPath(CFStringRef path, CFStringRef name,


// child must end with '/'
JNIEXPORT Boolean JNICALL
JNIEXPORT jboolean JNICALL
Java_java_util_prefs_MacOSXPreferencesFile_addChildToNode
(JNIEnv *env, jobject klass, jobject jpath, jobject jchild,
jobject jname, jlong juser, jlong jhost)
Expand All @@ -682,7 +682,7 @@ static void createTreeForPath(CFStringRef path, CFStringRef name,
CFDictionaryRef node;
CFStringRef topKey;
CFMutableDictionaryRef topValue;
Boolean beforeAdd = false;
jboolean beforeAdd = JNI_FALSE;

if (!path || !child || !name) goto badparams;

Expand All @@ -692,12 +692,12 @@ static void createTreeForPath(CFStringRef path, CFStringRef name,
// copyMutableNode creates the node if necessary
parent = copyMutableNode(path, name, user, host, &topKey, &topValue);
throwIfNull(parent, "copyMutableNode failed");
beforeAdd = CFDictionaryContainsKey(parent, child);
beforeAdd = CFDictionaryContainsKey(parent, child) ? JNI_TRUE : JNI_FALSE;
CFDictionaryAddValue(parent, child, node);
if (!beforeAdd)
beforeAdd = CFDictionaryContainsKey(parent, child);
beforeAdd = CFDictionaryContainsKey(parent, child) ? JNI_TRUE : JNI_FALSE;
else
beforeAdd = false;
beforeAdd = JNI_FALSE;
CFPreferencesSetValue(topKey, topValue, name, user, host);

CFRelease(parent);
Expand Down

1 comment on commit cd7d53c

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.