JDK-8239919 : [8u] enable parentheses-equality warnings in HotSpot
  • Type: Bug
  • Component: hotspot
  • Sub-Component: other
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-02-25
  • Updated: 2024-03-22
  • Resolved: 2020-02-26
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 8
8u251Fixed
Description
In 8u HotSpot there are several parentheses-equality warnings which causes compilation failure on recent versions of Xcode. We will fix these warnings as part of our toolchain upgrade effort.

The full warning of interest is:

warning: equality comparison with extraneous parentheses [-Wparentheses-equality]

This is a partial backport of Paul Hohensee's massive cleanup [0] of Xcode warnings. A complete backport of that chnageset is well beyond the scope of our toolchain upgrade work. But we do want to clean up as many warnings as we can with minimal risk.

[0] http://hg.openjdk.java.net/jdk10/jdk10/hotspot/rev/c044f8d03932