8180084: A few javac tests fail on Windows when the source and jtreg work dir are not on the same drive

Reviewed-by: jlahoda
This commit is contained in:
Christian Tornqvist 2017-05-12 15:14:16 -07:00
parent ea16a476ae
commit e2420ab119
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ public class Processor extends AbstractProcessor {
if (args.length != 1) throw new IllegalStateException("Must provide class name!");
String testContent = null;
List<File> sourcePath = new ArrayList<>();
for (String sourcePaths : System.getProperty("test.src.path").split(":")) {
for (String sourcePaths : System.getProperty("test.src.path").split(File.pathSeparator)) {
sourcePath.add(new File(sourcePaths));
}
JavacFileManager fm = JavacTool.create().getStandardFileManager(null, null, null);

View File

@ -66,7 +66,7 @@ public class VerifySuppressWarnings {
if (args.length != 1) throw new IllegalStateException("Must provide class name!");
String testContent = null;
List<File> sourcePath = new ArrayList<>();
for (String sourcePaths : System.getProperty("test.src.path").split(":")) {
for (String sourcePaths : System.getProperty("test.src.path").split(File.pathSeparator)) {
sourcePath.add(new File(sourcePaths));
}
JavacFileManager fm = JavacTool.create().getStandardFileManager(null, null, null);