This is the mail archive of the java-patches@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: [PATCH] gnu.java.nio.FileChannelImpl - hack - comments appreciated


>>>>> "Michael" == Michael Koch <konqueror at gmx dot de> writes:

Michael> I made a little patch to make gnu.java.nio.FileChannelImpl more 
Michael> working in trunk. Unfortunately it uses an IMO ugly hack:

Michael> It uses native methods to access the package private methods from 
Michael> java.io.FileDescriptor. Is this allowed ? Should it be avoided ? What 
Michael> should be done ?

This is definitely allowed.  We already do this with FileDescriptor in
java.net; there's even a comment in FileDescriptor explaining that we
do it.  I know we do it in other cases as well.  It is a bit ugly, but
not really worse than the alternatives.

Tom


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