This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: java.io.File and properties
- From: Tom Tromey <tromey at redhat dot com>
- To: Michael Koch <konqueror at gmx dot de>
- Cc: java at gcc dot gnu dot org
- Date: 08 May 2003 16:50:13 -0600
- Subject: Re: java.io.File and properties
- References: <200305082358.17365.konqueror@gmx.de>
- Reply-to: tromey at redhat dot com
>>>>> "Michael" == Michael Koch <konqueror@gmx.de> writes:
Michael> I have question: java.io.File initializes a static variable called
Michael> tmpdir at class initialization with the value of the property
Michael> "java.io.tmpdir". If an app changes the value of this property after
Michael> java.io.File.tmpdir has been initialized java.io.File will use the
Michael> old value.
What does the JDK do?
In many cases the JDK doesn't track changes to system properties. If
it doesn't, there's no a priori reason for us to (it may still be
useful, but it would have to be argued on different merits). If the
JDK does, then it is a compatibility point and should be done.
Tom