JDK-8208084 : Windows build failure - "'snprintf': identifier not found"
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 12
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • Submitted: 2018-07-23
  • Updated: 2018-11-09
  • Resolved: 2018-07-30
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 b05Fixed
Related Reports
Relates :  
Relates :  
Description
build failure on Windows with Visual Studio 2013

Compiling 2968 files for java.base
r:/openjdk/test/hotspot/gtest/classfile/test_symbolTable.cpp(128) : error C3861: 'snprintf': identifier not found
make[3]: *** [lib/CompileGtest.gmk:60: /cygdrive/r/buildroot/hotspot/variant-server/libjvm/gtest/objs/test_symbolTable.obj] Error 1

Visual Studio 2013 is newest compiler supported on Windows (by doc) and it does not have `snprintf` function. 

Introduced by https://bugs.openjdk.java.net/browse/JDK-8207359 changeset: http://hg.openjdk.java.net/jdk/jdk/rev/516acf6956a2