classpath
[Top][All Lists]
Advanced

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

RE: [Jikesrvm-core] Re: gnu.java.nio.channels.FileChannelImpl


From: Jeroen Frijters
Subject: RE: [Jikesrvm-core] Re: gnu.java.nio.channels.FileChannelImpl
Date: Wed, 12 May 2004 09:13:29 +0200

Steven Augart wrote:
> If someone does that kind of port, he'll have more problems than just
> than the size of a file descriptor.  I am not a big fan of writing
> massively general code "just in case."  The Extreme Programming series
> of books talks about this too.  "Sufficient unto the day is the evil
> thereof."

I agree, my port of classpath qualifies as fairly exotic and I just
replaced FileChannelImpl with my own version. Similarly with
PlainSocketImpl and PlainDatagramSocketImpl. I consider these cases the
same as the VM* classes.

As long as the interface to these classes doesn't change too often, this
is a very workable solution.

> I don't know what type the Win32 API uses for a file descriptor;

It uses a a pointer sized integer (i.e. 32 bit on Win32 and 64 bit on
Win64).

Regards,
Jeroen




reply via email to

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