Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8301118 Ignore allow and disallow options for java.security.manager System Property
  3. JDK-8309704

Release Note: Ignore Allow and Disallow Options for `java.security.manager` System Property

XMLWordPrintable

        In JDK 12, two new token options for the `java.security.manager` system property, "allow" and "disallow", were introduced.

        Many applications and frameworks are designed to run on multiple JDKs. For those that enable the SecurityManager at runtime via `System.setSecurityManager`, they have to specify the "allow" option as of JDK 18 (see JDK-8203316). However, these applications would also prefer to use the same command line across multiple versions of the JDK, especially if it is not known what JDK version a user will use.

        Currently, if these options are specified in JDK 12 or earlier, the runtime attempts to load a SecurityManager implementation with the classname "allow" or "disallow", which results in a `Could not create SecurityManager` Error and the application will not start up.

        From this release onward, the "allow" and "disallow" options for the `java.security.manager` system property will be ignored.

              pkoppula Prasadarao Koppula (Inactive)
              pkoppula Prasadarao Koppula (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: