>>>>> "Jeroen" == Jeroen Frijters <[EMAIL PROTECTED]> writes:

Jeroen> BTW, the design of the 1.0 I/O classes is less than
Jeroen> stellar. Since the FileDescriptor class is the owner of the
Jeroen> native resource, it should have had a finalizer, instead of
Jeroen> FileInputStream and FileOutputStream (for some reason
Jeroen> RandomAccessFile doesn't have a finalizer).

It isn't a compatibility problem to decide what class should have a
nontrivial finalizer.  We're free to rearrange things here.

In libgcj we have a finalizer in FileDescriptor.  I think this is the
only place you should have a finalizer that closes the underlying
native file descriptor.  Otherwise you run into problems here and
there; we had some bug reports about this a couple years ago.

Tom


_______________________________________________
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath

Reply via email to