[JVM args] Fix length negative

This commit is contained in:
Duy Tran Khanh committed 2020-12-30 16:22:32 +07:00
1 parent 0fdcaedc7b
commit 11a347727f
1 file changed
+1 -1
@@ -37,7 +37,7 @@ public final class VMLauncher {
mainArgs, 0, mainArgs.length
);
String[] vmArgs = new String[args.size() - mainArgs.length - 2];
String[] vmArgs = new String[mainClassIndex - 2];
System.arraycopy(
args.toArray(new String[0]), 0,
vmArgs, 0, vmArgs.length