classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cp-patches] Re: FYI: java/io/FileInputStream.java& java/io/FileOutp


From: Dalibor Topic
Subject: Re: [cp-patches] Re: FYI: java/io/FileInputStream.java& java/io/FileOutputStream.java
Date: Wed, 09 Mar 2005 23:59:21 +0100
User-agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.7.5) Gecko/20050105 Debian/1.7.5-1

Jeroen Frijters wrote:

Another strategy to implement this in the FileChannelImpl constructor would be to call open() first, and then to check whether what we have opened is a directory, and if it is one to call close() + throw FileNotFoundException in that case. Does that sound OK?


That sounds like a good approach to me. I would think it would be pretty
efficient too.

OK, I'll post a patch that does that, without the close() part, after some more testing and writing a muave test case. Thanks for your help!

cheers,
dalibor topic




reply via email to

[Prev in Thread] Current Thread [Next in Thread]