Skip to content
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

8342459: Remove calls to doPrivileged in javafx.base #1625

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

arapte
Copy link
Member

@arapte arapte commented Nov 5, 2024

Remove doPrivileged calls in the javafx.base module.
The changes are straight forward.

  1. Remove doPrivileged calls, with keeping the lambda expression.
  2. Remove SuppressWarnings annotations
  3. Remove unused imports

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-8342459: Remove calls to doPrivileged in javafx.base (Bug - P3)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 1625

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

Using diff file

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

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Nov 5, 2024

👋 Welcome back arapte! 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 Nov 5, 2024

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk bot added the rfr Ready for review label Nov 5, 2024
@mlbridge
Copy link

mlbridge bot commented Nov 5, 2024

Webrevs

@kevinrushforth
Copy link
Member

Pre-submit tests - Linux x64 - Build / test Failing after 3m — 1/1 failed

I just integrated the fix for this, so if you merge in the latest master, you won't see this problem any more.

Reviewers: @kevinrushforth @lukostyra

/reviewers 2

@openjdk
Copy link

openjdk bot commented Nov 5, 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).

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. I did leave one inline comment: I think there is a now-unused private AccessControllerContext field in the various *JavaBeans* classes. If so, removing that unused field will also allow removing the remaining SuppressWarnings annotation and the last of the security-related imports.

If you decide to change this I will reapprove. Otherwise, I'll pick it up in the last of the follow-up fixes.

Comment on lines 40 to 42
import java.security.AccessControlContext;
import java.security.AccessController;
import java.security.PrivilegedAction;
Copy link
Member

Choose a reason for hiding this comment

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

I think you can remove the now-unused field private final AccessControlContext acc, which will also let you remove the AccessControlContext and AccessController. Alternatively, I will remove them as part of JDK-8342993.

This comment applies to all of the JavaBeanXXXProperty classes.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks Kevin, The variable acc and related 2 imports are now removed in commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rfr Ready for review
Development

Successfully merging this pull request may close these issues.

3 participants