javaws fails to initialize and throw StringIndexOutOfBoundsException
when using in resources tag a valid java-vm-args option with character "=",
together with a valid property
$HOME/Library/Application\
Support/Oracle/Java/Deployment/log/javaws.....trace
java.lang.StringIndexOutOfBoundsException: String index out of range: -5
at java.lang.String.substring(String.java:1911)
at com.sun.deploy.util.Property.<init>(Unknown Source)
at com.sun.deploy.util.Property.createProperty(Unknown Source)
at com.sun.deploy.util.JVMParameters$ArgumentSet.addArgument(Unknown Source)
at com.sun.deploy.util.JVMParameters.addArgumentImpl(Unknown Source)
at com.sun.deploy.util.JVMParameters.parseImpl(Unknown Source)
at com.sun.deploy.util.JVMParameters.parseTrustedOptions(Unknown Source)
at com.sun.javaws.Main.initializeExecutionEnvironment(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main.access$000(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:722)
Steps to reproduce:
1. Start dynamictree-webstart_lab_prop.jnlp using javaws
Actual result:
The application does not start. The corrsponding javaws trace file contains StringIndexOutOfBoundsException (see above)
Expected result:
The application should start successfully.