JDK-8224111 : [Windows x86 32 bit]: Build warning with Visual Studio 2017
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 11
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows
  • Submitted: 2019-05-17
  • Updated: 2019-05-17
  • Resolved: 2019-05-17
Related Reports
Duplicate :  
Description
Windows x86 32 bit build stops with warning when using Vistual Studio2017:
src/hotspot/share/classfile/classFileParser.cpp(310): warning C4267: '=': conversion from 'size_t' to 'u2', possible loss of data
make[3]: *** [lib/CompileJvm.gmk:151: /cygdrive/e/priv/openjdk/nb/32bit/output-jdk11-test-fastdebug/hotspot/variant-server/libjvm/objs/classFileParser.obj] Error 1

Workaround: Use configure flag --disable-warnings-as-errors.