8180084: A few javac tests fail on Windows when the source and jtreg work dir are not on the same drive
Reviewed-by: jlahoda
--- a/langtools/test/tools/javac/processing/errors/StopOnInapplicableAnnotations/Processor.java Fri May 12 15:07:29 2017 -0700
+++ b/langtools/test/tools/javac/processing/errors/StopOnInapplicableAnnotations/Processor.java Fri May 12 15:14:16 2017 -0700
@@ -63,7 +63,7 @@
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);
--- a/langtools/test/tools/javac/warnings/suppress/VerifySuppressWarnings.java Fri May 12 15:07:29 2017 -0700
+++ b/langtools/test/tools/javac/warnings/suppress/VerifySuppressWarnings.java Fri May 12 15:14:16 2017 -0700
@@ -66,7 +66,7 @@
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);