File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/java.base/unix/classes/java/lang Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,15 @@ private static LaunchMechanism launchMechanism() {
97
97
98
98
try {
99
99
// Should be value of a LaunchMechanism enum
100
- return LaunchMechanism .valueOf (s .toUpperCase (Locale .ROOT ));
100
+ String launchMechanism = s .toUpperCase (Locale .ROOT );
101
+ if (launchMechanism .equals ("VFORK" ) && OperatingSystem .isLinux ()) {
102
+ System .err .println ("""
103
+ The VFORK launch mechanism has been removed. Please either remove the
104
+ jdk.lang.Process.launchMechanism property (preferred) or use FORK mode
105
+ instead (-Djdk.lang.Process.launchMechanism=FORK).
106
+ """ );
107
+ }
108
+ return LaunchMechanism .valueOf (launchMechanism );
101
109
} catch (IllegalArgumentException e ) {
102
110
}
103
111
You can’t perform that action at this time.
0 commit comments