-
Bug
-
Resolution: Fixed
-
P2
-
1.1.3, 1.1.5, 1.2.0
-
1.2beta4
-
generic, x86, sparc
-
solaris_2.5.1, solaris_2.6, windows_nt
-
Not verified
SunSoft bug 4109867.
Java cannot handle files >2GB.
(1) **API Problems which need immediate attention**
+ The method FileInputStream.available() (for disk files) returns the
number of bytes remaining in the file as an int. The actual value for
a large file may not fit in an int (needs a long).
+ The RandomAccessFile class has a skipBytes(int) method,
rather than the skip(long) method which the InputStreams have.
(2) Implementation - these methods have problems:
+ java.io.FileInputStream.skip()
+ java.io.FileInputStream.available()
+ java.io.RandomAccessFile.getFilePointer()
+ java.io.RandomAccessFile.length()
+ java.io.RandomAccessFile.setlength() [JDK1.2]
+ java.io.File.length()
Java cannot handle files >2GB.
(1) **API Problems which need immediate attention**
+ The method FileInputStream.available() (for disk files) returns the
number of bytes remaining in the file as an int. The actual value for
a large file may not fit in an int (needs a long).
+ The RandomAccessFile class has a skipBytes(int) method,
rather than the skip(long) method which the InputStreams have.
(2) Implementation - these methods have problems:
+ java.io.FileInputStream.skip()
+ java.io.FileInputStream.available()
+ java.io.RandomAccessFile.getFilePointer()
+ java.io.RandomAccessFile.length()
+ java.io.RandomAccessFile.setlength() [JDK1.2]
+ java.io.File.length()
- duplicates
-
JDK-4100321 random access to files larger than 2 gig
-
- Closed
-
-
JDK-4110555 java.io.RandomAccessFile: Calls to JVM_Lseek should pass jlong.
-
- Closed
-