Hello, I opened VFS-521 for this, and it looks like the problem is in try-with-resource in Java8 FilterOutputStream. The test in question is expected to fail with an IOException.
Gruss Bernd Am Fri, 02 May 2014 12:27:01 +0100 schrieb Schalk Cronjé <ysb...@gmail.com>: > Does anyone else have failures building VFS 2.1 with JDK8 (SVN rev > 1591869)? > > I am seeing this test failure building on Mac. > > ------------------------------------------------------------------------------- > Test set: > org.apache.commons.vfs2.provider.ram.test.CustomRamProviderTest > ------------------------------------------------------------------------------- > Tests run: 9, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.012 > sec <<< FAILURE! - in > org.apache.commons.vfs2.provider.ram.test.CustomRamProviderTest > testSmallFS(org.apache.commons.vfs2.provider.ram.test.CustomRamProviderTest) > Time elapsed: 0.007 sec <<< ERROR! > java.lang.IllegalArgumentException: Self-suppression not permitted at > org.apache.commons.vfs2.provider.ram.RamFileObject.resize(RamFileObject.java:277) > at > org.apache.commons.vfs2.provider.ram.RamFileOutputStream.write(RamFileOutputStream.java:68) > at > java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82) > at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140) > at > org.apache.commons.vfs2.util.MonitorOutputStream.flush(MonitorOutputStream.java:114) > at java.io.FilterOutputStream.close(FilterOutputStream.java:158) at > org.apache.commons.vfs2.util.MonitorOutputStream.close(MonitorOutputStream.java:54) > at > org.apache.commons.vfs2.provider.DefaultFileContent$FileContentOutputStream.close(DefaultFileContent.java:711) > at > org.apache.commons.vfs2.provider.ram.test.CustomRamProviderTest.testSmallFS(CustomRamProviderTest.java:264) > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org