Patch for Review: JvGetStringUTF and JvTempCString

Bryce McKinlay bryce@mckinlay.net.nz
Tue Aug 12 02:05:00 GMT 2003


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.





More information about the Java-patches mailing list