RFR: 8353641: Deprecate core library permission classes for removal [v8]
Roger Riggs
rriggs at openjdk.org
Mon Apr 7 18:40:35 UTC 2025
> 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 with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 10 additional commits since the last revision:
- Revert "Mark as deprecated for removal as of jdk 25: SecureClassLoader.getPermissions, URLClassLoader.getPermissions."
SecureClassLoader.getPermissions and URLClassLoader.getPermissions are not marked as Deprecated.
- Merge branch 'master' into 8353641-deprecate-premission-classes
- Missing suppresswarnings
- Mark as deprecated for removal as of jdk 25: SecureClassLoader.getPermissions, URLClassLoader.getPermissions.
Remove dead code from ForkJoinPool.
Add @SuppressWarnings("remove")
- Remove unnecessary SuppressWarnings and correct Deprecated annotation style
- Update copyright in WindowsFileCopy
- Remove unused import of LinkPermission
- Updated style of @Deprecated to match most existing @Deprecated annotations
`since` comes before `forRemoval`
No spaces around `=`
- Add SuppressWarnings to a Windows source missed earlier.
- 8353641: Deprecate core library permission classes for removal
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
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/24444/files
- new: https://git.openjdk.org/jdk/pull/24444/files/322c5938..6d3f003d
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=24444&range=07
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=24444&range=06-07
Stats: 10986 lines in 240 files changed: 8087 ins; 2384 del; 515 mod
Patch: https://git.openjdk.org/jdk/pull/24444.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/24444/head:pull/24444
PR: https://git.openjdk.org/jdk/pull/24444
More information about the net-dev
mailing list