[9] RFR: 8076486: javax/security/auth/Subject/doAs/NestedActions.java fails if extra VM options are given

Weijun Wang weijun.wang at oracle.com
Wed Apr 29 14:04:12 UTC 2015

Maybe you can call JAVA_OPTS.trim().split("\\s+") to avoid the filtering.

And it seems Collections.addAll() can add an array to a list.

Of course, you are free to exercise any fancy jdk8 features. :-)


On 4/29/2015 3:23 PM, Artem Smotrakov wrote:
> Hello,
> Please review this fix for
> javax/security/auth/Subject/doAs/NestedActions.java test.
> The test runs java in a separate process. It fails if multiple java
> options are passed because ProcessBuilder expects each parameter to be
> put in to a separate array element, but the test didn't do that. I
> updated the test to split java option string, and put each option in a
> separate array element.
> Bug: https://bugs.openjdk.java.net/browse/JDK-8076486
> Webrev: http://cr.openjdk.java.net/~asmotrak/8076486/webrev.00/
> Artem

More information about the security-dev mailing list