Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-84

Many classes are limited to length of stream < 2 GB, and behave incorrectly on larger streams

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2
    • 1.3
    • Utilities
    • None
    • All

    Description

      java int.MAX_VALUE is 2 GB. Classes that handle streams larger than 2 GB will behave incorrectly.

      For example, see
      http://svn.apache.org/viewvc/jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/IOUtils.java?view=markup
      Method: int copy(InputStream input, OutputStream output).

      The correct method would be: long copy(InputStream input, OutputStream output).

      This issue may affect many classes and routines.

      Attachments

        1. io-84-files-larger-than-2gb.patch
          9 kB
          Niall Pemberton

        Activity

          People

            Unassigned Unassigned
            ephilippov Evgenii Philippov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: