RFR: 8343958: Remove security manager impl in java.lang.Process and java.lang.Runtime.exec

Alan Bateman alanb at openjdk.org
Tue Nov 12 14:53:26 UTC 2024


On Tue, 12 Nov 2024 01:41:27 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

> Refactor removing the dependencies on SecurityManager, doPrivileged, and AccessController.

src/java.base/share/classes/java/lang/ProcessBuilder.java line 1111:

> 1109:                 + (dir == null ? "" : " (in directory \"" + dir + "\")")
> 1110:                 + e.getMessage(),
> 1111:                 e);

Can you check the format of the exception? It looks like original put ": " before the exception message. With the change it looks like it will immediately follow without spacing.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22024#discussion_r1838239493


More information about the core-libs-dev mailing list