Skip to content

8342457: Remove calls to doPrivileged in swing #1613

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

andy-goryachev-oracle
Copy link
Contributor

@andy-goryachev-oracle andy-goryachev-oracle commented Oct 28, 2024

Removes doPrivileged in the following module:

  • javafx.swing

See JDK-8342441 for details.

As a helpful hint for reviewers, I recommend reviewing this using the "Hide whitespace" option.


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed (2 reviews required, with at least 1 Reviewer, 1 Author)

Issue

  • JDK-8342457: Remove calls to doPrivileged in swing (Bug - P3)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jfx.git pull/1613/head:pull/1613
$ git checkout pull/1613

Update a local copy of the PR:
$ git checkout pull/1613
$ git pull https://git.openjdk.org/jfx.git pull/1613/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 1613

View PR using the GUI difftool:
$ git pr show -t 1613

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/1613.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Oct 28, 2024

👋 Welcome back angorya! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Oct 28, 2024

@andy-goryachev-oracle 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:

8342457: Remove calls to doPrivileged in swing

Reviewed-by: kcr, psadhukhan

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 5 new commits pushed to the master branch:

  • 58cd76a: 8342456: Remove calls to doPrivileged in javafx.graphics/other
  • 2234e84: 8342913: Remove calls to doPrivileged in media
  • 33987a4: 8342912: Remove calls to doPrivileged in fxml
  • d09cb78: 8340852: ScrollPane should not consume navigation keys when it doesn't have direct focus
  • 73c85e7: 8342453: Remove calls to doPrivileged in javafx.graphics/com.sun.javafx.tk

Please see this link for an up-to-date comparison between the source branch of this pull request and the master branch.
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 master branch, type /integrate in a new comment.

@andy-goryachev-oracle andy-goryachev-oracle marked this pull request as ready for review October 28, 2024 16:11
@openjdk openjdk bot added the rfr Ready for review label Oct 28, 2024
@mlbridge
Copy link

mlbridge bot commented Oct 28, 2024

Webrevs

@kevinrushforth kevinrushforth self-requested a review October 30, 2024 17:12
Copy link
Member

@kevinrushforth kevinrushforth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good other than the one leftover @SuppressWarnings annotation I noted inline

/reviewers 2

@@ -566,8 +553,7 @@ private boolean doComputeContains(double localX, double localY) {
private final EventHandler<FocusUngrabEvent> ungrabHandler = event -> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The @SuppressWarnings("removal") annotation can be removed from the method.

@kevinrushforth
Copy link
Member

@prsadhuk can you also review?

@openjdk
Copy link

openjdk bot commented Oct 30, 2024

@kevinrushforth
The total number of required reviews for this PR (including the jcheck configuration and the last /reviewers command) is now set to 2 (with at least 1 Reviewer, 1 Author).

@openjdk openjdk bot added the ready Ready to be integrated label Nov 4, 2024
@andy-goryachev-oracle
Copy link
Contributor Author

/integrate

@openjdk
Copy link

openjdk bot commented Nov 4, 2024

Going to push as commit 6d69084.
Since your change was applied there have been 6 commits pushed to the master branch:

  • 927f07b: 8342911: Remove calls to doPrivileged in controls
  • 58cd76a: 8342456: Remove calls to doPrivileged in javafx.graphics/other
  • 2234e84: 8342913: Remove calls to doPrivileged in media
  • 33987a4: 8342912: Remove calls to doPrivileged in fxml
  • d09cb78: 8340852: ScrollPane should not consume navigation keys when it doesn't have direct focus
  • 73c85e7: 8342453: Remove calls to doPrivileged in javafx.graphics/com.sun.javafx.tk

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Nov 4, 2024
@openjdk openjdk bot closed this Nov 4, 2024
@openjdk openjdk bot removed ready Ready to be integrated rfr Ready for review labels Nov 4, 2024
@openjdk
Copy link

openjdk bot commented Nov 4, 2024

@andy-goryachev-oracle Pushed as commit 6d69084.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@andy-goryachev-oracle andy-goryachev-oracle deleted the 8342457.do.privileged.swing branch November 4, 2024 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

3 participants