[jdk17] RFR: 8268349: Provide clear run-time warnings about Security Manager deprecation [v4]

Alan Bateman alanb at openjdk.java.net
Thu Jun 17 16:31:32 UTC 2021


On Thu, 17 Jun 2021 14:55:02 GMT, Weijun Wang <weijun at openjdk.org> wrote:

>> More loudly and precise warning messages when a security manager is either enabled at startup or installed at runtime.
>> 
>> This is new PR for the `openjdk/jdk17` repo copied from https://github.com/openjdk/jdk/pull/4400. A new commit is added.
>
> Weijun Wang has updated the pull request incrementally with one additional commit since the last revision:
> 
>   add bug id into a test

Implementation changes/text is okay.

src/java.base/share/classes/java/lang/System.java line 330:

> 328: 
> 329:     // Remember original System.err. setSecurityManager() warning goes here
> 330:     private static volatile @Stable PrintStream originalErrStream = null;

I'd probably use "initial" rather than "original" here but okay. You can drop setting it to null as that is its default value.

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

Marked as reviewed by alanb (Reviewer).

PR: https://git.openjdk.java.net/jdk17/pull/13



More information about the security-dev mailing list