RFR: 8353641: Deprecate core library permission classes for removal [v6]

Alan Bateman alanb at openjdk.org
Mon Apr 7 06:48:55 UTC 2025


On Fri, 4 Apr 2025 19:22:46 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

>> Now that the Security Manager is permanently disabled, the following permission classes in the core libraries area can be deprecated for removal as they are no longer useful: FilePermission, LinkPermission, LoggingPermission, PropertyPermission, ReflectPermission, RuntimePermission, and SerializablePermission
>> 
>> @Deprecated(forRemoval = true, since="25")
>> Is added to each class and the existing @apiNote is converted to @deprected
>
> Roger Riggs has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Remove unnecessary SuppressWarnings and correct Deprecated annotation style

src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java line 1639:

> 1637:      */
> 1638:     @SuppressWarnings("removal")
> 1639:     static volatile RuntimePermission modifyThreadPermission;

This can be removed, it's not used.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24444#discussion_r2030554666


More information about the nio-dev mailing list