This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: RandomAccessFile.seek


>>>>> "Tony" == Tony Kimball <alk@pobox.com> writes:

Tony> RandomAccessFile.seek should be able to extend files, instead of
Tony> throwing EOFException, to be like JDK 1.3.  This patch moves the
Tony> check on FileDescriptor.seek up into FileInputStream, so that it
Tony> does not occur when RandomAccessFile.seek calls
Tony> FileDescriptor.seek.

I finally looked at this.
I think we need to do more here.  For instance, the other
natFileDescriptor* files need to be updated.
Also RandomAccessFile.skipBytes needs to be updated.
What if we change FileDescriptor.seek to take a boolean argument which
tells it what to do?

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]