-
Notifications
You must be signed in to change notification settings - Fork 160
8160767: [TEST_BUG] java/awt/Frame/MaximizedToIconified/MaximizedToIconified.java #637
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
base: master
Are you sure you want to change the base?
Conversation
👋 Welcome back kurashige23! A progress list of the required criteria for merging this PR into |
❗ This change is not yet ready to be integrated. |
This backport pull request has now been updated with issue from the original commit. |
Webrevs
|
This is a clean backport as only path changes. /clean |
@kurashige23 The |
Util.waitForIdle(null); | ||
private static void checkState(Frame frame, int state) { | ||
frame.setExtendedState(state); | ||
robot.waitForIdle(); |
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.
I'm not sure this will be enough for jdk8. https://bugs.openjdk.org/browse/JDK-8056911 was not ported to jdk8, so Robot.waitForIdle() uses a "dummy" implementation.
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.
Sorry, I wasn't aware that Robot.waitForIdle() uses a dummy implementation.
I thought it was necessary to apply JDK-8056911 first, but backporting JDK-8056911 has been rejected in the past because changing the behavior of public methods is undesirable.
I will consider whether I should backport JDK-8056911. If the JDK-8056911 backport is not appropriate, I will implement another fix in this PR.
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.
I think that backporting JDK-8056911 is not consistent with consequences described in section "What form should back-ported patches take?" at Best practices for OpenJDK 8 updates . This is because backporting JDK-8056911 does not result in any significant bug fixes.
Therefore, I modified the test to use ExtendedRobot instead of Robot.
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.
If you have time, I would like you to check my comment. Thanks.
@kurashige23 This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
Hi all,
This is a backport of JDK-8160767: [TEST_BUG] java/awt/Frame/MaximizedToIconified/MaximizedToIconified.java
Original patch doesn't apply cleanly to 8u because JDK-8056911 isn't backported to 8u.
Backporting JDK-8056911 involves changing the behavior of a public method so it is risky. In addition to that, it does not lead to significant bug fix. For these reasons, I do not think it is appropriate to apply JDK-8056911 as a dependent fix.
So I made a slightly different fix from the original patch. Specifically, I modified to use an ExtendedRobot instead of Robot.
Testing: java/awt/Frame/MaximizedToIconified/MaximizedToIconified.java on RHEL9.2
Thanks.
Progress
Issue
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk8u-dev.git pull/637/head:pull/637
$ git checkout pull/637
Update a local copy of the PR:
$ git checkout pull/637
$ git pull https://git.openjdk.org/jdk8u-dev.git pull/637/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 637
View PR using the GUI difftool:
$ git pr show -t 637
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk8u-dev/pull/637.diff
Using Webrev
Link to Webrev Comment