--- a/langtools/test/tools/jdeps/APIDeps.java Wed Aug 10 13:52:02 2016 -0700
+++ b/langtools/test/tools/jdeps/APIDeps.java Wed Aug 10 15:47:46 2016 -0700
@@ -60,13 +60,13 @@
Path testsrc = Paths.get(System.getProperty("test.src"));
List<String> options = new ArrayList<>();
- // add -XaddExports
+ // add --add-exports
String testModules = System.getProperty("test.modules", "");
List<String> addExports = new ArrayList<>();
for (String s : testModules.split("\\s+")) {
if (s.isEmpty()) continue;
if (s.indexOf('/') != -1)
- addExports.add("-XaddExports:" + s.trim() + "=ALL-UNNAMED");
+ addExports.add("--add-exports=" + s.trim() + "=ALL-UNNAMED");
}
options.addAll(addExports);