Patch for Review: JvGetStringUTF and JvTempCString

Mohan Embar gnustuff@thisiscool.com
Tue Aug 12 15:05:00 GMT 2003


Hi People,

>Bryce> Do you really think its common to create a File object and not
>Bryce> use it?  It would make the code cleaner to not have to worry
>Bryce> about lazy-initialization cases.
>
>Honestly I don't know how common it is.  I've seen code that creates
>Files just to turn them into URLs.  Sometimes it goes back and forth
>like this a few times.  (Eclipse startup does some of this.)

Lazy initialization would probably require unnecessary synchronization
within java.io.File, which is supposed to act as if it is immutable.

-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/






More information about the Java-patches mailing list