RFR: 8344560: Add system property for patched runtime [v2]

Severin Gehwolf sgehwolf at openjdk.org
Fri Nov 22 16:56:15 UTC 2024


On Thu, 21 Nov 2024 10:29:32 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:

> While at it, should there be additional guards to prevent applications from changing the value of this system property by doing `System.setProperty("jdk.patched")` at runtime?

The updated patch has a test for this. In a nutshell any JDK property can be changed in code (also `jdk.module.patch.0` if desired). So this would be no different. The javadoc warns about unintended consequences of setting JDK properties that way.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22277#discussion_r1854284294


More information about the core-libs-dev mailing list