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

Weijun Wang weijun at openjdk.java.net
Tue Jun 29 15:50:20 UTC 2021


Add a cache to record which source has called `System::setSecurityManager` and only print out warning lines once for each.

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

Commit messages:
 - renaming variables, two callers in test
 - one warning for each caller

Changes: https://git.openjdk.java.net/jdk17/pull/166/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk17&pr=166&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8269543
  Stats: 47 lines in 2 files changed: 34 ins; 0 del; 13 mod
  Patch: https://git.openjdk.java.net/jdk17/pull/166.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk17 pull/166/head:pull/166

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


More information about the core-libs-dev mailing list