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: FYI: Patch: java nio file locking


Michael Koch wrote:

In my code I have "FileDescriptor extends FileChannel". So all of the file channel stuff moves to FileDescriptor. Or vice versa. My point is there is no need for two objects and two classes.


Doesn't this change the API in a non-compatible way regarding to SUNs
JDK ?

Hm. I somehow (without checking) thought FileDescriptor was a GCJ-only implementation class, but I see now that it isn't.


Sun really should should have made FileDescriptor inherit from
FileChannel or vice versa.  I suspect you're right in that we can't
do the merger ourselves.

Maybe we'll have to leave it the way it is.  Let me think about it.
--
	--Per Bothner
per@bothner.com   http://per.bothner.com/


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