JDK-8269543 : The warning for System::setSecurityManager should only appear once for each caller
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-06-28
  • Updated: 2021-07-15
  • Resolved: 2021-07-02
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17 JDK 18
17 b30Fixed 18Fixed
Related Reports
Relates :  
Description
If a program calls System::setSecurityManager multiple times the exact same warning lines appear multiple times. This could easily flood the stderr.
Comments
Changeset: c4ea13ed Author: Weijun Wang <weijun@openjdk.org> Date: 2021-07-02 14:31:50 +0000 URL: https://git.openjdk.java.net/jdk17/commit/c4ea13edd036bd6aeb213bb5391dd374d283d382
02-07-2021