JDK-8312592 : New parentheses warnings after HarfBuzz 7.2.0 update
  • Type: Bug
  • Component: client-libs
  • Affected Version: 11.0.21,17.0.9,21,22
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-07-24
  • Updated: 2025-01-08
  • Resolved: 2023-07-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17 JDK 21 JDK 22
17.0.10Fixed 21.0.2Fixed 22 b08Fixed
Related Reports
Relates :  
Description
At least GCC 6 fail the build with warnings-as-errors here:

```
../src/java.desktop/share/native/libharfbuzz/hb-subset-plan.cc: In function 'void _collect_layout_variation_indices(hb_subset_plan_t*)':
../src/java.desktop/share/native/libharfbuzz/hb-subset-plan.cc:389:83: error: suggest parentheses around assignment used as truth value [-Werror=parentheses]
     if (unlikely (!plan->check_success (font = _get_hb_font_with_variations (plan)))) {
                                                                                   ^
../src/java.desktop/share/native/libharfbuzz/hb.hh:259:46: note: in definition of macro 'unlikely'
 #define unlikely(expr) (__builtin_expect (!!(expr), 0))
                                              ^~~~
```

This is caused by HarfBuzz update to 7.2.0, JDK-8307301
Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/14996 Date: 2023-07-24 10:37:43 +0000
08-01-2025

[jdk17u-fix-request] Approval Request from Aleksey Shipilëv Unclean backport to unbreak JDK build on older platforms. Requires trivial re-application. Reviewed by Paul Hohensee.
19-10-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/1893 Date: 2023-10-18 10:45:20 +0000
18-10-2023

[jdk21u-fix-request] Approval Request from Aleksey Shipilëv Clean backport to unbreak JDK build on older platforms.
18-10-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk21u/pull/267 Date: 2023-10-18 07:52:31 +0000
18-10-2023

Changeset: ea067fc3 Author: Aleksey Shipilev <shade@openjdk.org> Date: 2023-07-25 08:46:12 +0000 URL: https://git.openjdk.org/jdk/commit/ea067fc3d2b1fecda694442c7921ecb980377c1e
25-07-2023