FileDescriptor proposal
Brian Jones
cbj@gnu.org
Wed Apr 23 15:23:00 GMT 2003
Anthony Green <green@redhat.com> writes:
> > One open question is how your approach would work with java.nio.
>
> I'm trying to figure out how the current scheme works.
>
> java/io/FileDescriptor.java implements a package private constructor
> that takes an int as the file descriptor. The comment says this
> works because we access this method from C+++ where package private
> is translated to public. However it looks like
> gnu/java/nio/FileChannelImpl.java uses this method. How is this
> possible?
gnu/java/nio/FileChannelImpl.java uses the public FileDescriptor() and
not the private FileDescriptor(int). At least in Classpath when I
looked at it this was the case.
Brian
--
Brian Jones <cbj@gnu.org>
More information about the Java
mailing list