RFR: 8338411: Implement JEP 486: Permanently Disable the Security Manager

ExE Boss duke at openjdk.org
Wed Oct 16 15:34:24 UTC 2024


On Wed, 16 Oct 2024 06:28:03 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Thanks, will fix.
>
> SecurityManager::getClassContext hasn't been needed since JDK 9 but we decided to keep the implementation in case there are older versions of logging libraries that extend SecurityManager so they can call this method. What we have currently in the jep486 is okay, it would be a bit more efficient if method info is dropped, but I think mostly we want to have any remaining usages of this method to move to StackWalker.

**SLF4J** currently depends on this method when logger name mismatch detection is enabled.

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

See also:
- https://github.com/qos-ch/slf4j/pull/271#issuecomment-1288128565

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

PR Review Comment: https://git.openjdk.org/jdk/pull/21498#discussion_r1803352590


More information about the build-dev mailing list