-
Notifications
You must be signed in to change notification settings - Fork 147
8348625: [21u, 17u] Revert JDK-8185862 to restore old java.awt.headless behavior on Windows #1359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
👋 Welcome back clanger! A progress list of the required criteria for merging this PR into |
|
@RealCLanger 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 9 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
Webrevs
|
jerboaa
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Differences to a revert of 78e35ea are:
src/java.desktop/share/classes/java/awt/GraphicsEnvironment.javaunused import isn't back re-introduced. OKsrc/java.desktop/windows/classes/sun/awt/Win32GraphicsEnvironment.javaextra space in comment not back re-introduced. OK.src/java.desktop/windows/native/libawt/windows/awt_Win32GraphicsDevice.cpp:VERIFYstatements kept. Basically an assert, which should be fine.src/java.desktop/windows/native/libawt/windows/awt_Win32GraphicsEnv.cppthereturnin the failure case is not re-introduced. We are done with the method anyway. OK.
Seems fine to me. But it would be good if a windows person could take a look and test it as well. @fthevenet perhaps?
|
@RealCLanger Please fix the title mismatch. Thanks! |
|
@jerboaa I'm going to look into reverting the changes made to our internal test infra following the introduction of the original patch in 17.0.12 and verify the tests that failed at the time now pass with this PR. |
Thanks. Since this is a 21u-dev PR it should be tested by the tests prior to the 21.0.4 release (which introduced this regression). |
|
Of course, you're right. What I really meant to say was introduced in the July 24 update (21.0.4 and 17.0.12). |
|
|
…a on Windows debug builds
|
I fixed the title and I added an exclusion of the test jdk/java/awt/font/JNICheck/FreeTypeScalerJNICheck.java for Windows debug builds because these could bring up the assertions in headless test environments. This kind:
|
jerboaa
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK.
|
I figured a quick and easy way to reproduce the issue locally, by using this srvany clone to run a sample swing application as a Windows service. |
Thanks for testing it, @fthevenet! |
|
/integrate |
|
Going to push as commit e1967d5.
Your commit was automatically rebased without conflicts. |
|
@RealCLanger Pushed as commit e1967d5. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
This basically reverts 78e35ea to restore old behavior with regards to headless handling on Windows.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk21u-dev.git pull/1359/head:pull/1359$ git checkout pull/1359Update a local copy of the PR:
$ git checkout pull/1359$ git pull https://git.openjdk.org/jdk21u-dev.git pull/1359/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1359View PR using the GUI difftool:
$ git pr show -t 1359Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk21u-dev/pull/1359.diff
Using Webrev
Link to Webrev Comment