Maybe this way:
this(dirname == null || name == null?name:dirname + separator + name);
and let File(String name) do the exception throwing stuff.
Best regards...
Gansha
-----Original Message-----
From: Tom Tromey [mailto:[EMAIL PROTECTED]]
Sent: 2001?6?29? 10:32
To: Wu, Gansha
Cc: '[EMAIL PROTECTED]'
Subject: Re: A minor bug in java.io.File: Submit for Classpath
>>>>> ">" == Wu, Gansha <[EMAIL PROTECTED]> writes:
>> An approperiate modification is to add a check like this:
>> this(dirname == null?name:dirname + separator + name);
In addition I think that the constructor must throw
NullPointerException if `name' is null, even when `dirname' is not.
Do you agree?
Tom
_______________________________________________
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath