On Tue, 17 Mar 2026 17:49:51 GMT, Alexander Zvegintsev <[email protected]> wrote:
> `Java_com_sun_java_swing_plaf_gtk_GTKLookAndFeel_applyThemeIfNeeded` has a > `jboolean` return type (aka `unsigned char`, 8 bit). > > `apply_theme_if_needed` has a `gboolean` return type (32 bit). > > However, there is no issue with this implicit conversion, as we are only > using `0` and `1` as values. > > This fix uses `result ? JNI_TRUE : JNI_FALSE` to remove the warning and > adhere to standard practices. This pull request has now been integrated. Changeset: 37cdc797 Author: Alexander Zvegintsev <[email protected]> URL: https://git.openjdk.org/jdk/commit/37cdc7977fc346c4b66d10fa149d6f28553f7002 Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod 8380228: JNI primitive type mismatch in Java_com_sun_java_swing_plaf_gtk_GTKLookAndFeel_applyThemeIfNeeded of swing_GTKEngine.c:403 (ID: 52423) Reviewed-by: psadhukhan, serb ------------- PR: https://git.openjdk.org/jdk/pull/30284
