JDK-8204294 : [REDO] - JVMFlag::printError missing ATTRIBUTE_PRINTF
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 11
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2018-06-04
  • Updated: 2019-05-28
  • Resolved: 2018-10-03
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 12
12 b14Fixed
Related Reports
Cloners :  
Sub Tasks
JDK-8204295 :  
Description
JVMFlag::printError is a printf-style variadic function, added as part of JDK-8133564.  The declaration needs an ATTRIBUTE_PRINTF decorator.

Comments
=== Output from failing command(s) repeated here === /usr/bin/printf "* For target hotspot_variant-server_libjvm_objs_jvmFlagConstraintsCMS.o:\n" * For target hotspot_variant-server_libjvm_objs_jvmFlagConstraintsCMS.o: (/usr/bin/grep -v -e "^Note: including file:" < /Volumes/Work/bugs/8204294/jdk11/build/macosx-x86_64-normal-server-fastdebug/make-support/failure-logs/hotspot_variant-server_libjvm_objs_jvmFlagConstraintsCMS.o.log || true) | /usr/bin/head -n 12 /Volumes/Work/bugs/8204294/jdk11/open/src/hotspot/share/gc/cms/jvmFlagConstraintsCMS.cpp:155:34: error: format specifies type 'unsigned long' but the argument has type 'int' [-Werror,-Wformat] value, HeapWordSize); ^~~~~~~~~~~~ 1 error generated. if test `/usr/bin/wc -l < /Volumes/Work/bugs/8204294/jdk11/build/macosx-x86_64-normal-server-fastdebug/make-support/failure-logs/hotspot_variant-server_libjvm_objs_jvmFlagConstraintsCMS.o.log` -gt 12; then /bin/echo " ... (rest of output omitted)" ; fi /usr/bin/printf "* For target hotspot_variant-server_libjvm_objs_jvmFlagConstraintsCompiler.o:\n" * For target hotspot_variant-server_libjvm_objs_jvmFlagConstraintsCompiler.o: (/usr/bin/grep -v -e "^Note: including file:" < /Volumes/Work/bugs/8204294/jdk11/build/macosx-x86_64-normal-server-fastdebug/make-support/failure-logs/hotspot_variant-server_libjvm_objs_jvmFlagConstraintsCompiler.o.log || true) | /usr/bin/head -n 12 /Volumes/Work/bugs/8204294/jdk11/open/src/hotspot/share/runtime/flags/jvmFlagConstraintsCompiler.cpp:98:51: error: format specifies type 'long' but the argument has type 'int' [-Werror,-Wformat] AllocatePrefetchDistance, 512); ^~~ /Volumes/Work/bugs/8204294/jdk11/open/src/hotspot/share/runtime/flags/jvmFlagConstraintsCompiler.cpp:168:27: error: format specifies type 'long' but the argument has type 'int' [-Werror,-Wformat] INT_MAX >> InvocationCounter::count_shift); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/include/limits.h:62:19: note: expanded from macro 'INT_MAX' #define INT_MAX __INT_MAX__ ^ <built-in>:38:21: note: expanded from here #define __INT_MAX__ 2147483647 ^
04-06-2018