The fix for JDK-8313564 changed the type of ContendedPaddingWidth from intx to int. In platform specific code some format specifiers are incorrect now and break the build.
For instance:
* For target hotspot_variant-server_libjvm_objs_vm_version_ppc.o:
/linuxppc64le/jdk-dev/src/hotspot/cpu/ppc/vm_version_ppc.cpp: In static member function 'static void VM_Version::print_features()':
/linuxppc64le/jdk-dev/src/hotspot/cpu/ppc/vm_version_ppc.cpp:500:21: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Werror=format=]
500 | tty->print_cr("ContendedPaddingWidth " INTX_FORMAT, ContendedPaddingWidth);
| ~~~~~~~~~~~~~~~~~~~~~
| |
| int
cc1plus: all warnings being treated as errors
For instance:
* For target hotspot_variant-server_libjvm_objs_vm_version_ppc.o:
/linuxppc64le/jdk-dev/src/hotspot/cpu/ppc/vm_version_ppc.cpp: In static member function 'static void VM_Version::print_features()':
/linuxppc64le/jdk-dev/src/hotspot/cpu/ppc/vm_version_ppc.cpp:500:21: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Werror=format=]
500 | tty->print_cr("ContendedPaddingWidth " INTX_FORMAT, ContendedPaddingWidth);
| ~~~~~~~~~~~~~~~~~~~~~
| |
| int
cc1plus: all warnings being treated as errors
- relates to
-
JDK-8313564 Fix -Wconversion warnings in classfile code
- Resolved