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


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/





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