JDK-8257502 : Builds fail with new warnings after JDK-8256254
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 16
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-12-01
  • Updated: 2020-12-07
  • Resolved: 2020-12-01
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 16
16 b27Fixed
Related Reports
Relates :  
Description
x86_32:

/home/shade/trunks/jdk/src/hotspot/cpu/x86/sharedRuntime_x86_32.cpp: In function 'void gen_special_dispatch(MacroAssembler*, const methodHandle&, const BasicType*, const VMRegPair*)':
/home/shade/trunks/jdk/src/hotspot/cpu/x86/sharedRuntime_x86_32.cpp:1291:11: error: format '%d' expects argument of type 'int', but argument 4 has type 'vmIntrinsics::ID' {aka 'vmIntrinsicID'} [-Werror=format=]
 1291 |     fatal("unexpected intrinsic id %d", iid);
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~
      |                                         |
      |                                         vmIntrinsics::ID {aka vmIntrinsicID}
   ... (rest of output omitted)

s390x:

/home/shade/trunks/jdk/src/hotspot/cpu/s390/sharedRuntime_s390.cpp: In function 'void gen_special_dispatch(MacroAssembler*, int, vmIntrinsics::ID, const BasicType*, const VMRegPair*)':
/home/shade/trunks/jdk/src/hotspot/cpu/s390/sharedRuntime_s390.cpp:923:15: error: format '%d' expects argument of type 'int', but argument 5 has type 'vmIntrinsics::ID' {aka 'vmIntrinsicID'} [-Werror=format=]
  923 |               "special_dispatch=%d", special_dispatch);
      |               ^~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~
      |                                      |
   ... (rest of output omitted)

Comments
Changeset: eaf4db6b Author: Aleksey Shipilev <shade@openjdk.org> Date: 2020-12-01 13:51:35 +0000 URL: https://git.openjdk.java.net/jdk/commit/eaf4db6b
01-12-2020