Please review the fix at http://cr.openjdk.java.net/~weijun/8158633/webrev.00/
*Jon*: If I write this line inside a .java test: @test @run main/othervm -Dfile.encoding=UTF-16 PemEncoding this error occurs: STDERR: ��Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at com.sun.javatest.regtest.agent.MainWrapper.main(MainWrapper.java:59) I guess this mean jtreg does not like the system property set? Thanks Max