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

Paul Sandoz paul.sandoz at oracle.com
Fri Oct 18 05:06:38 PDT 2013


On Oct 18, 2013, at 1:04 PM, Alan Bateman <Alan.Bateman at oracle.com> wrote:

> 
> 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.
> 

We have poor dependency management :-)


> So a simple patch to restore @library for now.
> 

+1

Paul.

> -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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
Url : http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20131018/52007e01/signature.asc 


More information about the nio-dev mailing list