This is the mail archive of the java@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]
Other format: [Raw text]

Re: FileDescriptor proposal


Anthony Green <green at redhat dot 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 at gnu dot org>


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