8236839: System menubar removed when other menubars are created or modified#86
8236839: System menubar removed when other menubars are created or modified#86jkaving wants to merge 2 commits intoopenjdk:masterfrom
Conversation
In the sceneProperty listener in MenuBarSkin we now leave the current system menubar alone if the stage that was changed is not the one that has the system menubar. Also add a test case that reproduces the problem caused by the previous behavior. Fixes JDK-8236839
|
Hi jkaving, welcome to this OpenJDK project and thanks for contributing! We do not recognize you as Contributor and need to ensure you have signed the Oracle Contributor Agreement (OCA). If you have not signed the OCA, please follow the instructions. Please fill in your GitHub username in the "Username" field of the application. Once you have signed the OCA, please let us know by writing If you already are an OpenJDK Author, Committer or Reviewer, please click here to open a new issue so that we can record that fact. Please use "Add GitHub user jkaving" as summary for the issue. If you are contributing this work on behalf of your employer and your employer has signed the OCA, please let us know by writing |
|
/signed |
|
Thank you! Please allow for up to two weeks to process your OCA, although it is usually done within one to two business days. Also, please note that pull requests that are pending an OCA check will not usually be evaluated, so your patience is appreciated! |
|
I just realised that I did not make the commit with the same email address that I used on the OCA (but both addresses are linked to my GitHub account). |
|
No, it's not a problem. The commit email address doesn't matter as long as your OCA can be validated. |
Webrevs
|
|
/reviewers 2 |
|
@kevinrushforth |
|
@aghaisas can be the second reviewer. |
kevinrushforth
left a comment
There was a problem hiding this comment.
This looks good to me. I confirm that this fixes the bug, and that the new unit test catches the problem.
I added a minor comment about the import statement.
modules/javafx.controls/src/test/java/test/javafx/scene/control/skin/MenuBarSkinTest.java
Outdated
Show resolved
Hide resolved
|
@jkaving This change now passes all automated pre-integration checks. When the change also fulfills all project specific requirements, type
Since the source branch of this PR was last updated there have been 44 commits pushed to the As you are not a known OpenJDK Author, an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@kevinrushforth, @aghaisas) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
|
/integrate |
|
/sponsor |
|
@kevinrushforth @jkaving The following commits have been pushed to master since your change was applied:
Your commit was automatically rebased without conflicts. Pushed as commit a74137a. |
|
Mailing list message from Kevin Rushforth on openjfx-dev: Changeset: a74137a 8236839: System menubar removed when other menubars are created or modified Reviewed-by: kcr, aghaisas ! modules/javafx.controls/src/main/java/javafx/scene/control/skin/MenuBarSkin.java |
This pull request fixes the sceneProperty listener in
MenuBarSkinso that we leave thecurrent system menubar alone when other menubars are changed.
It also adds a test case that reproduces the problem before the fix.
Progress
Issue
JDK-8236839: System menubar removed when other menubars are created or modified
Approvers