This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [Patch] java.net and java.nio fixes
Am Mittwoch, 20. November 2002 18:12 schrieb Tom Tromey:
> >>>>> "Michael" == Michael Koch <konqueror@gmx.de> writes:
>
> Michael> + * java/io/FileInputStream.java
> Michael> + (getChannel): New method.
>
> Note you should also mention new fields in the ChangeLog.
Okay, will do in the future.
> Michael> +++ java/io/FileInputStream.java 20 Nov 2002 16:17:57
> -0000 Michael> + private FileChannel ch;
>
> Let's talk about the long term here a little.
> What is the best way to do this? Do we want a new field like this?
> Another choice would be to reimplement java.io in terms of
> java.nio.
Let us first implement java.nio completely and look how it behaves.
Probably a java.io rewrite might gain something, probably not. when
java.nio is ready I will make some test. Let us first implement the
functionality. We can do optimizations and rewrites based on the new
stuff later. I currently plan no rewrite of java.io.
There is generally place for rewrites of old features when new stuff
is implemented in libgcj. Another example is the use of
java.util.regexp when its implemented. This migth also do some
simplifications in other places when using it.
Michael
--
Homepage: http://www.worldforge.org/
GPG-key: http://konqueror.dyndns.org/~mkoch/michael.gpg