This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Idle Musings: Correct value of "user.dir"
- From: Tom Tromey <tromey at redhat dot com>
- To: "Ranjit Mathew" <rmathew at hotmail dot com>
- Cc: "GCJ" <java at gcc dot gnu dot org>
- Date: 27 Feb 2003 21:17:32 -0700
- Subject: Re: Idle Musings: Correct value of "user.dir"
- References: <OE704xjZ1WkA5fZxhhX0001d982@hotmail.com>
- Reply-to: tromey at redhat dot com
>>>>> "Ranjit" == Ranjit Mathew <rmathew4lists at hotmail dot com> writes:
Ranjit> Apparently it's the *former* - I wrote a simple test program in Java
Ranjit> with a JNI helper method to change the directory and tested it with
Ranjit> Sun's JDK 1.4.1 on Win2K.
Ranjit> Imagine the kludges needed in the code trying to implement this
Ranjit> if it were the *latter*!
In Java all the system properties seem to be set once, at startup, and
then never change. The user program can change them, but generally
this only affects code that looks things up in the future -- the
system classes appear to be free to cache the values when they are
initialized, and never bother doing a lookup again.
Tom