-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8344011: Remove usage of security manager from Class and reflective APIs #22063
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 alanb! A progress list of the required criteria for merging this PR into |
@AlanBateman 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 14 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. ➡️ To integrate this PR with the above commit message to the |
@AlanBateman The following label 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 list. If you would like to change these labels, use the /label pull request command. |
/reviewers 2 |
@AlanBateman |
Webrevs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reflection and invoke changes look good. Not sure about ServiceLoader. Module/Package changes look innocuous but not a professional in those areas either.
runtime/cds/appcds/StaticArchiveWithLambda.java is updated to not assume that the archive create skips a generated class (confirmed with Ioi). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The update to StaticArchiveWithLambda test makes sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed most of it, so far only couple of minor comments, can try to finish up tomorrow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lines 55-57, can the "access to the constructor" part be removed from the comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Graal changes are ready
/integrate |
Going to push as commit abacece.
Your commit was automatically rebased without conflicts. |
@AlanBateman Pushed as commit abacece. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Mailing list message from James Perkins on core-libs-dev: Please forgive me if this is the wrong medium to report this. I've found an issue with the change in the ServiceLoader. Specifically, the For some background on how I found this. I had a legitimate classpath issue [1]: James R. Perkins Principal Software Engineer Red Hat <https://www.redhat.com/> On Wed, Nov 13, 2024 at 11:44?PM Alan Bateman <alanb at openjdk.org> wrote: -------------- next part -------------- |
Mailing list message from Alan Bateman on core-libs-dev: On 21/02/2025 01:08, James Perkins wrote:
Thanks for the bug report. Yes, this is a change in behavior that was -Alan [1] https://bugs.openjdk.org/browse/JDK-8350481 |
Mailing list message from James Perkins on core-libs-dev: Perfect. Thank you so much Alan. James R. Perkins Principal Software Engineer Red Hat <https://www.redhat.com/> On Thu, Feb 20, 2025 at 10:44?PM Alan Bateman <alan.bateman at oracle.com>
-------------- next part -------------- |
Remove code required for the now defunct SecurityManager execution mode from java.lang.Class, friends, and reflection APIs. Careful review is required so I've set Reviewer to 2. I've tried to keep the changes as easy to review as possible and not go over board with cleanup.
sun.reflect.misc.ReflectUtil are been hollowed out. A future pass will remove empty methods and qualified exports once the changes in "far away" code and modules is done.
In Lookup's class description, the removal of the sentence "avoid package access checks for classes accessible to the lookup class" and the link to the removed "Security manager interactions" section is in discussion/non-normative text, just missed in the JEP 486 update that remove the linked section.
runtime/cds/appcds/StaticArchiveWithLambda.java is updated as creating the archive no longer skips a generated class.
Testing: tier1-5
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/22063/head:pull/22063
$ git checkout pull/22063
Update a local copy of the PR:
$ git checkout pull/22063
$ git pull https://git.openjdk.org/jdk.git pull/22063/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 22063
View PR using the GUI difftool:
$ git pr show -t 22063
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/22063.diff
Using Webrev
Link to Webrev Comment