On Wed, 13 Nov 2024 10:32:34 GMT, Alan Bateman <al...@openjdk.org> wrote:

> 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

This pull request has now been integrated.

Changeset: abacece8
Author:    Alan Bateman <al...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/abacece8265996aaec888c8f109f2e476ec7a8e3
Stats:     1254 lines in 26 files changed: 6 ins; 1094 del; 154 mod

8344011: Remove usage of security manager from Class and reflective APIs

Reviewed-by: liach, yzheng, rriggs

-------------

PR: https://git.openjdk.org/jdk/pull/22063

Reply via email to