8339791: Refactor MiscUndecorated/ActiveAWTWindowTest.java#26471
8339791: Refactor MiscUndecorated/ActiveAWTWindowTest.java#26471srmandal wants to merge 7 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back smandalika! A progress list of the required criteria for merging this PR into |
|
@srmandal 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 1132 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. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@kumarabhi006, @prsadhuk) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
Webrevs
|
|
Can someone take a quick look and provide feedback on this simple refactoring change ? |
kumarabhi006
left a comment
There was a problem hiding this comment.
Few more observations :
- Add a space wherever application. At L76...
try { - Don't think it is required to print stack trace, you can throw it in RTE.
- At L165, robot.waitForIdle(5 * delay);
- Access UI components on EDT. e.g L166 etc.
- Can remove
//captureScreenAndSave();andSystem.err.println("Test failed!");lines
|
All Comments have been incorporated.
|
|
I have incorporated the review suggestions. Can anyone provide feedback on these? |
|
Changed as suggested. All redudant RTEs were removed. |
|
Removed the passed & eventType variable for test pass/fail assertion. I have incorporated the review suggestions. Can anyone provide feedback on these? |
|
LGTM |
|
/integrate |
|
Can some one please sponsor this PR. |
|
/sponsor |
|
Going to push as commit a306f88.
Your commit was automatically rebased without conflicts. |
The java/awt/Frame/MiscUndecorated/ActiveAWTWindowTest.java test uses object monitors and wait/notify to synchronise actions in the test.
Using CountDownLatch could make the test simpler, shorter, clearer.
Tested the code on a windows-x64, macos-x64 and lnux-x64 machines and the test is working as expected.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/26471/head:pull/26471$ git checkout pull/26471Update a local copy of the PR:
$ git checkout pull/26471$ git pull https://git.openjdk.org/jdk.git pull/26471/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 26471View PR using the GUI difftool:
$ git pr show -t 26471Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/26471.diff
Using Webrev
Link to Webrev Comment