[jdk17] RFR: 8269543: The warning for System::setSecurityManager should only appear once for each caller [v2]

Jaikiran Pai jpai at openjdk.java.net
Wed Jun 30 16:55:08 UTC 2021


On Wed, 30 Jun 2021 15:45:25 GMT, Weijun Wang <weijun at openjdk.org> wrote:

>> Add a cache to record which sources have called `System::setSecurityManager` and only print out warning lines once for each.
>
> Weijun Wang has updated the pull request incrementally with one additional commit since the last revision:
> 
>   update cache key from String to Class

FWIW - I built a local JDK with this PR and gave it a try against one of the original Apache Ant project example where the warnings were previously flooding the stderr. With this change, I now see the warning message just once (as expected) for that example.

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

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



More information about the security-dev mailing list