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]

Re: java.io.File


Jeff Sturm wrote:

> On Sun, 1 Apr 2001, Bryce McKinlay wrote:
> > Here at last is my long-awaited often-promised patch for bringing the
> > File class up to 1.3 spec.
>
> Great!  That should grow the list up compileable apps up quite a bit.
>
> It looks like path.separator, file.separator and java.io.tmpdir will now
> be read-only properties.  That makes sense for the first two, but how is a
> user expected to override the default without resorting to system-specific
> env vars?

Good point. That part of the patch is actually questionable for another
reason, which is that init_native is resetting a final variable. That could
cause problems if the compiler ever decided to treat File.fileSeparator as a
null constant.

I'll reverse that part of the patch. Its a shame, because I think its much
cleaner to localize that stuff in the File implementation. Oh well.

regards

  [ bryce ]



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