[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: A minor bug in java.io.File: Submit for Classpath
From: |
Wu, Gansha |
Subject: |
RE: A minor bug in java.io.File: Submit for Classpath |
Date: |
Fri, 29 Jun 2001 10:23:53 +0800 |
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:address@hidden
Sent: 2001?6?29? 10:32
To: Wu, Gansha
Cc: 'address@hidden'
Subject: Re: A minor bug in java.io.File: Submit for Classpath
>>>>> ">" == Wu, Gansha <address@hidden> 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