8026859: (fs) test/java/nio/file/Files/StreamTest.java fails to compile intermittently

Alan Bateman Alan.Bateman at oracle.com
Fri Oct 18 04:04:36 PDT 2013


When I updated this test recently then I removed the @library tag as it 
didn't appear to be used. However one of its dependencies 
(FaultyFileSystem.java) does make use of the test utilities for this 
area and so the test will not compile without @library. The reason it 
wasn't noticed is because other tests running before it also use 
FaultyFileSystem and so it was compiled already.

So a simple patch to restore @library for now.

-Alan


diff --git a/test/java/nio/file/Files/StreamTest.java 
b/test/java/nio/file/Files/StreamTest.java
--- a/test/java/nio/file/Files/StreamTest.java
+++ b/test/java/nio/file/Files/StreamTest.java
@@ -23,6 +23,7 @@

  /* @test
   * @bug 8006884 8019526
+ * @library ..
   * @build PassThroughFileSystem FaultyFileSystem
   * @run testng StreamTest
   * @summary Unit test for java.nio.file.Files methods that return a Stream


More information about the nio-dev mailing list