This is the mail archive of the
mailing list for the Java project.
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
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.