Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-521

[RAM][tests] Failure with Java 8

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.1
    • 2.1
    • Win64 with Maven 3.0.5 and Java 1.8.0_05

    Description

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

      Attachments

        1. fos.patch
          0.7 kB
          Bernd Eckenfels

        Activity

          People

            b.eckenfels Bernd Eckenfels
            b.eckenfels Bernd Eckenfels
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: