stax said:
If 'getProperty("user.home")' don't return my home dir which it doesn't
then it's a bug, period.
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html
Stax has claimed to have left the thread, so I don't know if (s)he will
see this. Either way, I just wanted to point out that the above claim is
over-simplifying things.
From the JavaDocs to which Stax linked:
<quote>
public static String getProperty(String key)
Gets the system property indicated by the specified key.
First, if there is a security manager, its checkPropertyAccess method is
called with the key as its argument. This may result in a SecurityException.
If there is no current set of system properties, a set of system properties
is first created and initialized in the same manner as for the getProperties
method.
</quote>
And what it says for the getProperties method:
<quote>
The current set of system properties for use by the getProperty(String)
method is returned as a Properties object. If there is no current set of
system properties, a set of system properties is first created and
initialized.
</quote>
In other words, ONLY if there is no current set of system properties,
will a new set be created an initialized. So if there was, earlier, a manual
call to setProperties(), the properties might not contain the property
"user.home", or it may contain that property with any arbitrary data.
So "'getProperty("user.home")' don't return my home dir" is not
nescessarily proof of a bug, as the programmers may have intended to
override that property with some custom value (however, I doubt this is
what's happening in limewire).
Stax says (s)he wasn't a Java programmer, so I assumed (s)he didn't have
a debugger running to step through the code for Limewire. I don't even know
if (s)he has confirmed that limewire ever actually makes a call to
getProperty("user.home"), or is merely assuming that that is what it does.
(S)he hasn't replied to Roedy's request to post the what he sees when he
visits the WASSUP applet, and when (s)he posted a dump of his/her
environment variables, I didn't see any reference to his/her home directory,
so it's difficult to diagnose whether or not limewire should reasonably be
able to detect Stax's intentions and do what (s)he wants.
- Oliver