[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cp-patches] Re: FYI: java/io/FileInputStream.java& java/io/FileOutp
Re: [cp-patches] Re: FYI: java/io/FileInputStream.java& java/io/FileOutputStream.java
Wed, 09 Mar 2005 23:59:21 +0100
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
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!