8388842: VER_PLATFORM_WIN32_NT checks in WPrinterJob are obsolete - #32037
8388842: VER_PLATFORM_WIN32_NT checks in WPrinterJob are obsolete#32037MBaesken wants to merge 1 commit into
Conversation
|
👋 Welcome back mbaesken! A progress list of the required criteria for merging this PR into |
|
I added a return value check to GlobalAlloc, seems we check this usually and should do so according to the function documentation at https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-globalalloc . |
|
@MBaesken This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 8 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
|
The total number of required reviews for this PR has been set to 2 based on the presence of this label: |
In the JBS issue I already commented that I found this too, and it should be done separately, if at all. The better question is why you aren't doing the other desktop one I pointed out, in java.desktop/windows/native/libawt/java2d/d3d/D3DPipelineManager.cpp |
Oh, I see .. this is currently being removed by a different PR Hmm, perhaps this should have been added to that PR but never mind .. that's all about D3D |
At some places in the coding we still check for VER_PLATFORM_WIN32_NT, but this should be obsolete.
All Windows versions from at least Windows XP fall in this category
https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-osversioninfoa
There is another usage in java.base (java.base/windows/native/libjava/java_props_md.c), I can handle this here or do the java.base adjustment in another PR.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/32037/head:pull/32037$ git checkout pull/32037Update a local copy of the PR:
$ git checkout pull/32037$ git pull https://git.openjdk.org/jdk.git pull/32037/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 32037View PR using the GUI difftool:
$ git pr show -t 32037Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/32037.diff
Using Webrev
Link to Webrev Comment