changeset 43277:edf2836a33f7

8173141: tools/javac/classreader/FileSystemClosedTest.java fails on Windows Reviewed-by: ksrini
author jjg
date Fri, 20 Jan 2017 18:23:34 -0800
parents 12436ebea906
children e9f4ee9bfd86
files langtools/test/tools/javac/classreader/FileSystemClosedTest.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/langtools/test/tools/javac/classreader/FileSystemClosedTest.java	Thu Jan 19 19:14:51 2017 -0800
+++ b/langtools/test/tools/javac/classreader/FileSystemClosedTest.java	Fri Jan 20 18:23:34 2017 -0800
@@ -68,7 +68,7 @@
         JavaCompiler comp = ToolProvider.getSystemJavaCompiler();
         PrintWriter out = new PrintWriter(System.err, true);
         StandardJavaFileManager fm = comp.getStandardFileManager(null, null, null);
-        List<String> options = Arrays.asList("-classpath", jar.toString());
+        List<String> options = Arrays.asList("-classpath", jar.toString(), "-proc:none");
         Iterable<? extends JavaFileObject> files = fm.getJavaFileObjects(src.resolve("C.java"));
         com.sun.source.util.JavacTask task =
                 (com.sun.source.util.JavacTask) comp.getTask(out, fm, null, options, null, files);
@@ -92,7 +92,7 @@
             TypeElement p2C2 = elems.getTypeElement("p2.C2");
             System.err.println("p2: " + p2 + ";  p2C2: " + p2C2);
             if (p2C2 != null) {
-                throw new Exception("p1.C1 found unexpectedly");
+                throw new Exception("p2.C2 found unexpectedly");
             }
         } catch (ClosedFileSystemException e) {
             throw new Exception("unexpected exception thrown", e);