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

Update use of GetVersionEx to get correct Windows version in hs_err files

    Details

    • Subcomponent:
    • Resolved In Build:
      b40
    • OS:
      windows
    • Verification:
      Not verified

      Backports

        Description

        From MSDN:

        "With the release of Windows 8.1, the behavior of the GetVersionEx API has changed in the value it will return for the operating system version. The value returned by the GetVersionEx function now depends on how the application is manifested."

        On Windows 10 (6.4.9841), Java reports Windows 8.1 build 9600, so our OS detection code needs to be updated. One possible solution could be:

        "To obtain the full version number for the operating system, call the GetFileVersionInfo function on one of the system DLLs, such as Kernel32.dll, then call VerQueryValue to obtain the \\StringFileInfo\\<lang><codepage>\\ProductVersion subblock of the file version information."

          Issue Links

            Activity

            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/hs-rt/hotspot/rev/092a9eddf58d
            User: ctornqvi
            Date: 2014-11-03 21:41:30 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/hs-rt/hotspot/rev/092a9eddf58d User: ctornqvi Date: 2014-11-03 21:41:30 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/092a9eddf58d
            User: lana
            Date: 2014-11-17 19:26:14 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/092a9eddf58d User: lana Date: 2014-11-17 19:26:14 +0000

              People

              • Assignee:
                ctornqvi Christian Tornqvist
                Reporter:
                ctornqvi Christian Tornqvist
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: