-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8266459: Implement JEP 411: Deprecate the Security Manager for Removal #4073
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
|
👋 Welcome back weijun! A progress list of the required criteria for merging this PR into |
|
The 3rd commit is the biggest one but it's all generated programmatically. All changes are simply adding Precisely, of all the diff hunks (leading whitespaces ignored), there are 1607 There are also 7 cases where an existing annotation is updated All other cases are new annotation embedded inline: That's all. |
|
@wangweij The following labels will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command. |
|
/contributor add mullan, lancea, weijun |
|
@wangweij Could not parse
|
|
/contributor add mullan |
|
@wangweij |
|
/contributor add lancea |
|
/contributor add weijun |
|
@wangweij |
|
@wangweij |
|
Two files were removed by JEP 403 and JEP 407, respectively. One method in |
|
New commit pushed. The default behavior is now reverted to be equivalent to See https://mail.openjdk.java.net/pipermail/jdk-dev/2021-May/005616.html. |
|
/csr needed |
|
@wangweij the issue for this pull request, JDK-8266459, already has an approved CSR request: JDK-8266577 |
|
System.setSecurityManagerDirect looks a bit ugly now. Can this be renamed to implSetSecurityManager and avoid the line break in the middle of the declaration? The usage of System.err usage in setSecurityManager also needs to be re-examined as this will run arbitrary code when System.err can be changed. To fix this will require capturing the stream at startup (as was done with the illegal access logger). It's okay to integrate with what you have for the first push and we can fix this issue with System.err when the warning message is changed to the intended message. |
|
/integrate |
Please review this implementation of JEP 411.
The code change is divided into 3 commits. Please review them one by one.
@Deprecateannotations and spec change. It also update the default value of thejava.security.managersystem property to "disallow", and necessary test change following this update.The 1st and 2nd commits should be reviewed carefully. The 3rd one is generated programmatically, see the comment below for more details. If you are only interested in a portion of the 3rd commit and would like to review it as a separate file, please comment here and I'll generate an individual webrev.
Due to the size of this PR, no attempt is made to update copyright years for any file to minimize unnecessary merge conflict.
Furthermore, since the default value of
java.security.managersystem property is now "disallow", most of the tests callingSystem.setSecurityManager()need to launched with-Djava.security.manager=allow. This is covered in a different PR at #4071.Update: the deprecation annotations and javadoc tags, build, compiler, core-libs, hotspot, i18n, jmx, net, nio, security, and serviceability are reviewed. Rest are 2d, awt, beans, sound, and swing.
Progress
Issue
Reviewers
Contributors
<[email protected]><[email protected]><[email protected]>Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/4073/head:pull/4073$ git checkout pull/4073Update a local copy of the PR:
$ git checkout pull/4073$ git pull https://git.openjdk.java.net/jdk pull/4073/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 4073View PR using the GUI difftool:
$ git pr show -t 4073Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/4073.diff