JDK-8066504 : GetVersionEx in java.base/windows/native/libjava/java_props_md.c might not get correct Windows version
  • Type: Bug
  • Component: core-libs
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • Submitted: 2014-12-02
  • Updated: 2017-05-24
  • Resolved: 2015-06-20
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 8 JDK 9 Other
8u60Fixed 9 b71Fixed openjdk7uFixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
Microsoft changed the way GetVersionEx starting with Windows 8.1, it no longer reports correct versions in all cases. See JDK-8059803 for more details and how the JVM does it nowadays. 

I found several other calls to GetVersionEx that does version checking for no longer supported versions of Windows that could be cleaned out as well.
Comments
The version number of kernel32.dll is a more reliable reflection of the windows version than GetVersionEx.
15-06-2015