From: Samuele P. <pe...@in...> - 2000-11-09 15:02:58
Hi.
Really just a detail.
[Finn Bock]
> I think it would be better to let the File() ctor create and handle the
> aspect of relative files. I.e.
>
> if (dirName.length() == 0)
> dirName = null;
> File dir = new File(dirName, name);
>
> It is not well defined, what will happen if the dirName == "", but a
> null directory value will create a relative file.
Reading the sun docs:
http://java.sun.com/j2se/1.3/docs/api/java/io/File.html#File(java.lang.String,
java.lang.String)
The contrary seems true, at least for java2. So that "" is the right choice
to get a "rel" dir.
But my fear is really for java1.1 and the Macs.
The old sun jdk1.1 doc is mostly unclear.
regards, Samuele
From: Samuele P. <pe...@in...> - 2000-11-09 15:09:57
Sorry, I have tried it concretely.
The java 1.2 doc is confused too.
You [Finn] are right, null seems to do the right job, at least
with java2.
regards, Samuele.
On Thu, 9 Nov 2000 16:09:53 +0100 (MET), you wrote:
>... null seems to do the right job, at least
>with java2.
Also for MS jview 5.00.3229 and jdk1.1.7a
regards,
finn