8203398: Test test/langtools/tools/javac/options/release/ReleaseOptionCurrent.java writes into the source directory
authorbsrbnd
Fri, 18 May 2018 12:48:09 +0200
changeset 50173 5593cab7fb96
parent 50172 9925e9fd56ad
child 50174 78d9ffb8146f
8203398: Test test/langtools/tools/javac/options/release/ReleaseOptionCurrent.java writes into the source directory Reviewed-by: jjg, jlahoda
test/langtools/tools/javac/options/release/ReleaseOptionCurrent.java
--- a/test/langtools/tools/javac/options/release/ReleaseOptionCurrent.java	Fri May 18 13:23:28 2018 +0300
+++ b/test/langtools/tools/javac/options/release/ReleaseOptionCurrent.java	Fri May 18 12:48:09 2018 +0200
@@ -49,7 +49,7 @@
         try (StandardJavaFileManager fm = compiler.getStandardFileManager(null, null, null)) {
             Iterable<? extends JavaFileObject> input =
                     fm.getJavaFileObjects(System.getProperty("test.src") + "/ReleaseOption.java");
-            List<String> options = Arrays.asList("--release", Source.DEFAULT.name);
+            List<String> options = Arrays.asList("-d", ".", "--release", Source.DEFAULT.name);
 
             boolean result = compiler.getTask(null, fm, null, options, null, input).call();
             if (!result) {