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."

          Attachments

            Issue Links

              Activity

                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: