mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-11 05:59:52 +00:00
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:
parent
ea16a476ae
commit
e2420ab119
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user