< prev index next >

test/tools/javac/diags/Example.java

Print this page

        

@@ -221,11 +221,11 @@
 
             // hack to automatically add exports; a better solution would be to grep the
             // source for import statements or a magic comment
             for (File pf: procFiles) {
                 if (pf.getName().equals("CreateBadClassFile.java")) {
-                    pOpts.add("-XaddExports:jdk.jdeps/com.sun.tools.classfile=ALL-UNNAMED");
+                    pOpts.add("--add-exports=jdk.jdeps/com.sun.tools.classfile=ALL-UNNAMED");
                 }
             }
 
             new Jsr199Compiler(verbose).run(null, null, false, pOpts, procFiles);
             opts.add("-classpath"); // avoid using -processorpath for now

@@ -246,11 +246,11 @@
             opts.add("-sourcepath");
             opts.add(srcPathDir.getPath());
         }
 
         if (moduleSourcePathDir != null) {
-            opts.add("-modulesourcepath");
+            opts.add("--module-source-path");
             opts.add(moduleSourcePathDir.getPath());
             files = moduleSourcePathFiles;
         }
 
         if (additionalFiles.size() > 0) {
< prev index next >