Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8066504

GetVersionEx in java.base/windows/native/libjava/java_props_md.c might not get correct Windows version

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Resolved In Build:
      b71
    • OS:
      windows

      Backports

        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.

          Issue Links

            Activity

            Hide
            rriggs Roger Riggs added a comment -
            The version number of kernel32.dll is a more reliable reflection of the windows version
            than GetVersionEx.
            Show
            rriggs Roger Riggs added a comment - The version number of kernel32.dll is a more reliable reflection of the windows version than GetVersionEx.
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/0bc25016547c
            User: rriggs
            Date: 2015-06-20 14:17:42 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/0bc25016547c User: rriggs Date: 2015-06-20 14:17:42 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/0bc25016547c
            User: lana
            Date: 2015-07-01 21:31:59 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/0bc25016547c User: lana Date: 2015-07-01 21:31:59 +0000

              People

              • Assignee:
                rriggs Roger Riggs
                Reporter:
                ctornqvi Christian Tornqvist
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: