Community
Participate
Working Groups
Main processes the program arguments to set some system properties and remove other launcher specific arguments. If the last argument is a flag without a value, then it does not get processed. This is because we check flags at args[i - 1] but only loop to i < args.length
Sorry, I was wrong about this. This is a bug in the way we are consuming the --launcher.overrideVmargs and appendVmargs specifically. These arguments are handled where we are expecting a parameter, they need to be handled earlier when we are checking for flags.
fixed
This is a flag the check so the [i-1] is incorrect and causes this: java.lang.ArrayIndexOutOfBoundsException: -1 at org.eclipse.equinox.launcher.Main.processCommandLine(Main.java:1496) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:542) at org.eclipse.equinox.launcher.Main.run(Main.java:1409) at org.eclipse.equinox.launcher.Main.main(Main.java:1385)
this was fixed in v20100824b