This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch for Review: JvGetStringUTF and JvTempCString



On Tuesday, Aug 12, 2003, at 12:06 Pacific/Auckland, Tom Tromey wrote:


"Bryce" == Bryce McKinlay <bryce@mckinlay.net.nz> writes:

Bryce> It occurs to me that in most of the cases where no low level operation
Bryce> is done, the File object probable came from a File.listFiles() or
Bryce> something similar. In which case, we already have the filename in its
Bryce> native encoding and don't need to convert it again.


Yeah, in this situation we can construct a new File and initialize
the native bits immediately.  But I think we still want lazy
computation for other cases.

Do you really think its common to create a File object and not use it? It would make the code cleaner to not have to worry about lazy-initialization cases.


Regards

Bryce.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]