commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernd Eckenfels (JIRA)" <>
Subject [jira] [Comment Edited] (VFS-521) [RAM][tests] Failure with Java 8
Date Fri, 02 May 2014 22:22:19 GMT


Bernd Eckenfels edited comment on VFS-521 at 5/2/14 10:22 PM:

This seems to be a java8 thing. The test actually expexts an IOException, and in the above
stacktrace location it is actually thrown:


But the runtime seems to wrap this in an IlelgalArgumentException. Internez say it is related
to try with resource (which can collect suppressed exceptions), however we don't use that
(at least not in the VFS code). Maybe its a test test-framework or JUnit problem?

was (Author: b.eckenfels):
This seems to be a java8 thing, this test actually expects a `new IOException()` and instead
of this the "self suppression" is alerted. Internetz say it is related to try with resource,
however we dont use that (at least not in the VFS code). Maybe its a test framework problem?

> [RAM][tests] Failure with Java 8
> --------------------------------
>                 Key: VFS-521
>                 URL:
>             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
> When running the unit tests the RAM provider custom tests fails only with Java 8 (build
and runtime):
> 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(
>         at org.apache.commons.vfs2.provider.ram.RamFileOutputStream.write(
>         at
>         at
>         at org.apache.commons.vfs2.util.MonitorOutputStream.flush(
>         at
>         at org.apache.commons.vfs2.util.MonitorOutputStream.close(
>         at org.apache.commons.vfs2.provider.DefaultFileContent$FileContentOutputStream.close(
>         at org.apache.commons.vfs2.provider.ram.test.CustomRamProviderTest.testSmallFS(

This message was sent by Atlassian JIRA

View raw message