diff -r b09ce4c1536e -r ffd2dc160173 jdk/test/tools/launcher/MiscTests.java --- a/jdk/test/tools/launcher/MiscTests.java Fri Nov 04 14:29:34 2016 -0700 +++ b/jdk/test/tools/launcher/MiscTests.java Fri Nov 04 15:49:31 2016 -0700 @@ -69,8 +69,6 @@ static void test6856415() throws IOException { final String mainClass = "Foo6856415"; - final String exportOpts - = "--add-exports=jdk.crypto.pkcs11/sun.security.pkcs11=ALL-UNNAMED"; List scratch = new ArrayList<>(); scratch.add("public class Foo6856415 {"); @@ -81,7 +79,9 @@ scratch.add("}"); createFile(new File(mainClass + ".java"), scratch); - compile(mainClass + ".java", exportOpts); + compile(mainClass + ".java", + "--add-modules=jdk.crypto.pkcs11", + "--add-exports=jdk.crypto.pkcs11/sun.security.pkcs11=ALL-UNNAMED"); File testJar = new File("Foo.jar"); testJar.delete();