changeset 50757:5593cab7fb96

8203398: Test test/langtools/tools/javac/options/release/ReleaseOptionCurrent.java writes into the source directory Reviewed-by: jjg, jlahoda
author bsrbnd
date Fri, 18 May 2018 12:48:09 +0200
parents 9925e9fd56ad
children 78d9ffb8146f
files test/langtools/tools/javac/options/release/ReleaseOptionCurrent.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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) {