You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Bernd Eckenfels (JIRA)" <ji...@apache.org> on 2014/11/03 01:27:33 UTC
[jira] [Resolved] (VFS-521) [RAM][tests] Failure with Java 8
[ https://issues.apache.org/jira/browse/VFS-521?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bernd Eckenfels resolved VFS-521.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.1
Have commited a fix, similiar to the fos.patch.
http://svn.apache.org/r1636224
> [RAM][tests] Failure with Java 8
> --------------------------------
>
> Key: VFS-521
> URL: https://issues.apache.org/jira/browse/VFS-521
> Project: Commons VFS
> Issue Type: Bug
> Affects Versions: 2.1
> Environment: Win64 with Maven 3.0.5 and Java 1.8.0_05
> Reporter: Bernd Eckenfels
> Assignee: Bernd Eckenfels
> Priority: Blocker
> Labels: java8, tests
> Fix For: 2.1
>
> Attachments: fos.patch
>
>
> When running the unit tests the RAM provider custom tests fails only with Java 8 (build and runtime):
> {code}
> Tests run: 9, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.019 sec <<< FAILURE! - in org.apache.commons.vfs2.provider.ram.test.CustomRamProviderTest
> testSmallFS(org.apache.commons.vfs2.provider.ram.test.CustomRamProviderTest) Time elapsed: 0.012 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)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)