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




On Mon, 2 Apr 2001, Bryce McKinlay wrote:
> 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'm not sure that would be a good optimization.  It'd cause problems with
System.out, for one thing.

> 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.

I agree.  Why not keep init_native() to install those properties?  Set
them only if they are not yet set?  Another pitfall though is that the
properties won't exist until java.io.File is initialized, which may not be
quite right... hmm... maybe it's best left alone after all.

Jeff




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