RFR: 8344034: Remove security manager dependency in Serialization [v4]

Alan Bateman alanb at openjdk.org
Wed Nov 13 14:54:53 UTC 2024


On Wed, 13 Nov 2024 14:44:56 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

>> After [JDK-8338411](https://bugs.openjdk.org/browse/JDK-8338411), Serialization implementation dependencies on SecurityManager, doPrivildged, and AccessController are removed.
>> Some refactoring to cleanup the remaining code is expected.
>
> Roger Riggs has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Remove overlooked SecurityManager use in ObjectInputFilter and ObjectStreamClass

src/java.base/share/classes/java/io/ObjectStreamField.java line 166:

> 164:     @SuppressWarnings("removal")
> 165:     @CallerSensitive
> 166:     public Class<?> getType() {

This method is no longer caller sensitive, also no need to import ReflectUtil now.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22041#discussion_r1840484140


More information about the core-libs-dev mailing list